当前位置:网站首页>Penetration tool - sqlmap
Penetration tool - sqlmap
2022-07-04 05:27:00 【In a word, the Trojan horse (the growth road of Wang an Xiaobai)】
One 、SQLMap Introduction to
1.SQLMap It's an open source SQL Injection tool , It can be used for automatic detection , You can even use SQL Inject vulnerabilities to directly obtain the permissions of the target database server . It has a powerful detection engine , Function options of penetration testing for different types of databases , Including getting the data stored in the database , Accessing operating system files can even execute operating system commands through an external data connection .
2. Supported databases :MySQL, Oracle, PostgreSQL, Microsoft SQL Server, MicrosoftAccess,IBM DB2, SQLite, Firebird, Sybase and SAP MAXDB.
Two 、SQLMap Five injection methods
- Joint injection
- An error injection
- Bull's blind note
- Time blind note
- Stack Injection
3、 ... and 、SQLMap An important parameter of
1. Parameters :-u /
Format :sqlmap -u " Target site url "
sqlmap -u "http://192.168.1.5/sqlilabs/Less-1/?id=1" id For web server IP Address
Results screenshots :
2. Parameters -m
Format :sqlmap -m file name
sqlmap -m 1.txt
Will be executed successively from the file url, You can only write one in a line url
2. Parameters :-r
Indicates loading from a file http request , Put the request packet into a file
sqlmap -r 2.txt
4. Set echo level
Parameters -v The default is 1
0: Echo only Python error message
1: Echo basic information and warning information at the same time
2: Echo at the same time debug Information
3: It also shows the injected payload
4: Show at the same time http request
5: Show at the same time http Response head
6: Show at the same time http Response request
grammar :sqlmap -u "http://192.168.1.5/sqlilabs/Less-1/?id=1" -v 3
5. Set detection level
Parameters --level
There are five levels Default level is 1,
level>=2 test http cookie
level>=3 test http user-agent/referer
level =5 test http host
The basic format :[email protected]:~/Desktop# sqlmap -r 2.txt --level 2
6. Set up http Packet related parameters
Parameters :--data hold data The following data is in post Mode submission
The basic format :[email protected]:~/Desktop# sqlmap -u "http://192.168.1.5/sqlilabs/Less-12/" --data "id=1"
7. Parameters --cookie hold cookie Parameter copy added to --cookie Back
The basic format :sqlmap -u "http://192.168.1.5/DVWA/vulnerabilities/sqli/?id=1&Submit=Submit#" --cookie = "Cookie: security=low; PHPSESSID=c799t8hil8934arhoeipuhep54"
8. Specify test parameters
-p :sqlmap All... Will be tested by default GET and POST Parameters , When -level Is greater than or equal to 2 When it's time Can test HTTP Cookie Head value , When it is greater than or equal to 3 Will also test when User- Agents HTTP Referer Head value .
9. Set the detection risk level
Parameters :--risk There are three levels of risk ,
1-3: The default is 1 Will test most of the test statements ,
2 Time based test statements will be added ,
3 Will increase OR Of the statement SQL Injection test .
Be careful : In some cases , For example, in UPDATE, DELETE The statement of , Into a OR Test statement of , The entire table that may cause an update , May cause great risks .
10. Column data
(1)--dbs view the database
Operation format :[email protected]:~/Desktop# sqlmap -u "http://192.168.1.5/sqlilabs/Less-7/?id=1" --dbs
(2)--users View all users --password View all passwords Can be used together
Operation format :[email protected]:~/Desktop# sqlmap -u "http://192.168.1.5/sqlilabs/Less-7/?id=1" --dbs --users --password
Entry directory :cd /root/.sqlmap/output/192.168.1.5
11. Use shell command :
Parameters :--os-shell Bounce interaction shell
Premise : Need the physical path of the website , The second is the need to have FILE read-write permission
12.--tamper Bypass the injection limit
usqlmap-u"http://url/news?id=1" --tamper "base64encode.py"
边栏推荐
- [matlab] matlab simulation - low pass Gaussian white noise
- IP时代来临,电竞酒店如何借好游戏的“东风”?
- Analysis of classical pointer and array written test questions in C language
- LM small programmable controller software (based on CoDeSys) note 22: error 4268/4052
- Trie number dictionary tree
- VB. Net simple processing pictures, black and white (class library - 7)
- Two sides of the evening: tell me about the bloom filter and cuckoo filter? Application scenario? I'm confused..
- Graduation design of small programs -- small programs of food and recipes
- Integer type of C language
- [matlab] communication signal modulation general function interpolation function
猜你喜欢
全国职业院校技能大赛(中职组)网络安全竞赛试题—解析
Programming example of stm32f1 and stm32subeide -74hc595 drives 4-bit 7-segment nixie tube
[QT] timer
A summary of the 8544 problem that SolidWorks Standard cannot obtain a license
Headache delayed double deletion
Supplement the JS of a video website to decrypt the video
Flutter calls Gaode map app to realize location search, route planning and reverse geocoding
【QT】定时器
C语言简易学生管理系统(含源码)
光模块字母含义及参数简称大全
随机推荐
Principle and practice of common defects in RSA encryption application
Supplement the JS of a video website to decrypt the video
Electronic components mall and data manual download website summary
Flask
How to build your own knowledge engine? Community open application
SQL performance optimization skills
Public inputs in appliedzkp zkevm (13)
ETCD数据库源码分析——初始化总览
远程桌面客户端 RDP
How to use postman to realize simple interface Association [add, delete, modify and query]
Analysis of classical pointer and array written test questions in C language
Detailed comparison of Hynix emmc5.0 and 5.1 series
LM small programmable controller software (based on CoDeSys) note XXI: error 3703
2022 R2 mobile pressure vessel filling retraining question bank and answers
Write a complete answer applet (including single choice questions, judgment questions and multiple topics) (III) single choice questions, judgment questions, and the first question display
Ping port artifact psping
Void convolution, deformable convolution, deformable ROI pooling
【兴趣阅读】Adversarial Filtering Modeling on Long-term User Behavior Sequences for Click-Through Rate Pre
Simulink与Arduino串口通信
总线的基本概念