SQL injection testbed designed for sqlmap practice (MySQL backend)
- Clone repository:
cd /var/www/html ; git clone https://github.com/hvqzao/sqli-testbed sqli
- Change password:
newpass=`apg -M NCL -m 12 -n 1` ; echo -e "New password: $newpass\nPress Enter to proceed, ^C to cancel." ; read ; sed -i "s/zoacUtOvee/$newpass/g" index.php
-
Setup MySQL (commands included in index.php)
-
Configure "Setup", "Drop" and "Filter" sections (uncomment appropriate entries in index.php)
-
Goal: Dump table with user passwords
Union based: http://127.0.0.1/sqli/?u=1
Boolean based: http://127.0.0.1/sqli/?b=1
Example use: https://www.youtube.com/watch?v=KSiS5c83-y0