当前位置:网站首页>Sqlmap (SQL injection automation tool)
Sqlmap (SQL injection automation tool)
2022-07-29 07:38:00 【The way of remedy】
brief introduction
Open source SQL Injection vulnerability detection tool , Can detect... In dynamic pages get/post Parameters ,cookie,http head , You can also view data , File system access , It can even execute operating system commands .
Test method : Bull's blind note 、 Time blind note 、 An error injection 、UNION Joint query injection 、 Stack Injection
Support database :Mysql、Oracle、PostgreSQL、MSSQL、Microsoft Access、IBM DB2、SQLite、Firebird、Sybase、SAP MaxDb
Download and install
1、 Download the official website address :https://sqlmap.org/

2、 Environmental Science : because sqlmap be based on Python Language development , So we need to Python The language environment to install .
3、 Will download okay sqlmap Unzip and copy To python Under the path

4、 Create a... On the desktop cmd Shortcut to , And named it SQLMap


5、 Right click the new shortcut “ attribute ”, take “ The starting position ” Change to yourself sqlmap The path of , Click ok .

6、 Double click the shortcut you have created , Input sqlmap.py -h, The following information indicates that the installation is successful .

Parameters use
Designated target
-u "url"
( Appoint URL,get Request mode )
-r request.txt
Post submission , Use HTTP Request file , This file is available from BurpSuit Derived from .
-m url.txt
Use one that contains multiple url File for scanning . If there's a repetition ,sqlmap Will be automatically identified as a .
-g "inurl:\" .php?id=1\"
scanning , Use Google Grammar url.
-l log.txt --scope=" Regular expressions "
Post submission , Use BurpSuit Of log file .(Options—>Misc—>Logging—>Proxy—> Check Request ,scope The role of is Filter log contents based on regular expressions , Filter the objects to be scanned .
-c sqlmap.conf
Scan with profile (sqlmap.conf And sqlmap.py In the same directory )
Specify target parameters
-p "username,id"
Specify the parameters to scan
--data="username=admin&password=123"
Specify parameters for scanning ,get/post All applicable
--method=GET
Specify request method , also POST
--cookie="security=low;PHPSESSID=121123131"
Use cookie Identity authentication
--skip "username,id"
Exclude specified scan parameters
--param-del=" ;"
Change the separator , The default is &, Because some websites don't use & Transfer multiple data .
--drop-set-cookie( Put it in cookie End position in the value of )
Sometimes after a request is made , The server will restart Set-cookie To the client ,SQLmap By default, the new cookie, This parameter can be set at this time , It means to use the original cookie.
--user-agent " aaaaaaa"
Use browser proxy headers
--random-agent
Use random browser proxy headers
--host=" aaaaa"
Specify host header
--referer="aaaaaa"
Appoint referer head
--headers="host:aaaa\nUser-Agent:bbbb"
Some websites require specific headers to authenticate
--auth-type , —auth-cred
—auth-type Basic —auth-cred “user:pass” Identity Authentication , also Digest、NTLM
--auth-file="ca.PEM"
Use the private key certificate to authenticate
--proxy="url"
Use a proxy to scan the target , The port occupied by the agent software is 8080
--proxy-cred="name:pass"
The account and password when using the proxy
--ignore-proxy
Ignore system level proxy settings , Usually used to scan local network targets , This segment .
View data information
--users
Query all database accounts
--dbs
Query all databases
--schema
Query the source database ( Contains data that defines data )
-a
Query the current user、 Current database 、 Host name 、 At present user Whether you are the maximum authority administrator 、 Database accounts, etc
-D Database name
Specify database
--current-user
Query all user names in the current database
--current-db
Query the current database name
--hostname
Check the host name of the server
--Privileges -U username
Inquire about username Authority
--roles
Query roles
--tables
Look at all the tables
-T Table name
Designated table
--columns
View all fields
-C Field name
Specified field
--count
Count , See how many pieces of data there are
--exclude-sysdbs
Exclude system libraries
--dump
View the data
--start 3
Look at Article 3
--end 4
See article 4
--sql-query “select * from users”
Execute statement
--common-columns
Brute force field , Applied in two cases :① No permission to read data .②mysql<5.0 , No, infomation_schema library
--common-tables
Brute force cracking table
--check-waf
testing WAF/IPS/IDS
--hpp
Bypass WAF/IPS/IDS
—identify-waf
Thoroughly test WAF/IPS/IDS
边栏推荐
- MapReduce各阶段步骤
- 写点dp
- MySQL 45 讲 | 07 行锁功过:怎么减少行锁对性能的影响?
- State machine DP 3D
- MySQL 45讲 | 08 事务到底是隔离的还是不隔离的?
- Description of rollingfileappender attribute in logback
- Better performance and simpler lazy loading of intersectionobserverentry (observer)
- Output 1234 three digits without repetition
- Embroidery of little D
- [summer daily question] Luogu p7760 [coci2016-2017 5] tuna
猜你喜欢

MySQL 45讲 | 08 事务到底是隔离的还是不隔离的?

Use custom annotations to verify the size of the list
Scala higher order (IX): pattern matching in Scala

电子元器件贸易企业如何借助ERP系统,解决仓库管理难题?

Zero technology is deeply involved in the development of privacy computing financial scenario standards of the ICT Institute

207. Curriculum

jdbc入门

Thinkphp6 realizes database backup

JS day 4 process control (if statement and switch statement)
![【暑期每日一题】洛谷 P7760 [COCI2016-2017#5] Tuna](/img/9a/f857538c574fb54bc1accb737d7aec.png)
【暑期每日一题】洛谷 P7760 [COCI2016-2017#5] Tuna
随机推荐
监听页面滚动位置定位底部按钮(包含页面初始化定位不对鼠标滑动生效的解决方案)
Log4qt memory leak, use of heob memory detection tool
Thinkphp6 realizes database backup
Prometheus与Grafana
Does Flink support sqlserver databases? Get the changes of SQLSERVER database
MySQL 45讲 | 08 事务到底是隔离的还是不隔离的?
webapi接口文件下载时跨域问题
Access数据库引入datagridview数据后,显示错误
【暑期每日一题】洛谷 P6336 [COCI2007-2008#2] BIJELE
小D的刺绣
Meeting notice of OA project (Query & whether to attend the meeting & feedback details)
I, 28, a tester, was ruthlessly dismissed in October: I want to remind people who are still learning to test
受欢迎的牛 G
logback日志级别简介说明
[100 cases of unity practice] the single choice multiple choice judgment questions of unity universal question answering system are all common
Sort out the two NFT pricing paradigms and four solutions on the market
A long article --- in-depth understanding of synchronized
【MYSQL】-【子查询】
Cfdiv1+2-bash and a high math puzzle- (gcd+ summary of segment tree single point interval maintenance)
2-unified return class dto object