Lesson 6: Introduction to Hacking Databases
Exercise 6.1
- Use Burp proxy as you learned in class to capture all data between your browser and the DVWA. Make sure that you setup your browser proxy settings to use Burp as the proxy (i.e., 127.0.0.0 port 8080 by default).
- Navigate to SQL Injection in the DVWA.
- Enter a string in the username form.
- Capture the request on Burp and save it to a file. For example,
sql_test.txt
- Launch
sqlmap using the file (sqlmap -r sql_test.txt --dbs).
- Follow the instructions in
sqlmap.
- You should see the databases in the system. Then use the
sqlmap -r sql_test.txt -D dvwa --dump-all to dump the database content.
Exercise 6.2
- You can do similar things with the OWASP
zaproxy. Make sure that Burp is not running and launch the zaproxy.
- For this one, I am not going to give you a lot of instructions ;-)Try to figure out how to perform a SQL injection using
zaproxy to the same DVWA.