Group: User Level:
Posts: 274 Joined: 9/20/2020 IP-Address: saved
| <!DOCTYPE html> <html> <head> <title>Hacxx Malware Detector and Browser Extension Checker</title> </head> <body> <h1>Malware Detector and Browser Extension Checker</h1> <label for="inputUrl">Enter URL:</label> <input type="text" id="inputUrl" name="url"> <button onclick="detectMalware()">Check for Malware</button>
<script> function detectMalware() {
// Check for suspicious network resources const suspiciousUrls = ["malicious.com", "evil.net", "127.0.0.1"]; const resources = performance.getEntriesByType('resource'); for (let i = 0; i < resources.length; i++) { const url = resources.name; for (let j = 0; j < suspiciousUrls.length; j++) { if (url.includes(suspiciousUrls[j])) { alert('Suspicious network resource detected!'); return; } } }
// Check for suspicious browser extensions const suspiciousExtensions = ["malicious_extension", "evil_extension"]; if (chrome && chrome.management) { chrome.management.getAll((extensions) => { for (let i = 0; i < extensions.length; i++) { const name = extensions.name; for (let j = 0; j < suspiciousExtensions.length; j++) { if (name === suspiciousExtensions[j]) { alert('Suspicious browser extension detected!'); return; } } } alert('No malware detected.'); }); } else if (browser && browser.management) { browser.management.getAll().then((extensions) => { for (let i = 0; i < extensions.length; i++) { const name = extensions.name; for (let j = 0; j < suspiciousExtensions.length; j++) { if (name === suspiciousExtensions[j]) { alert('Suspicious browser extension detected!'); return; } } } alert('No malware detected.'); }); }
// Check for suspicious browser behavior window.addEventListener('keydown', (event) => { if (event.key === 'Alt' || event.key === 'Control' || event.key === 'Shift') { alert('Suspicious keypress detected!'); return; } });
alert('No malware detected.'); } </script> </body> </html> </script> </body> </html>
|