Website Containing Different Types of SQL Injection Vulnerabilities
- SQL Authentication Bypass - Single Quotes - 1
- SQL Authentication Bypass - Double Quotes - 2
- SQL Authentication Bypass - Parenthesis - 3
- SQL Authentication Bypass - Single Quote Parenthesis - 4
- SQL Authentication Bypass - No Quotes - 5
- SQL Authentication Bypass - Double Quote Parenthesis - 6
- SQL Authentication Bypass - Single Quote Double Parenthesis - 7
- SQL Authentication Bypass - Double Quote Double Parenthesis - 8
- GET Parameter - Error Based - No Quotes - 1
- GET Parameter - Error Based - Single Quotes - 2
- GET Parameter - Error Based - Double Quotes - 3
- GET Parameter - Error Based - Parenthesis - 4
- GET Parameter - Error Based - Single Quotes Parenthesis - 5
- GET Parameter - Error Based - Double Quotes Parenthesis - 6
- GET Parameter - Error Based - Single Quotes Double Parenthesis - 7
- GET Parameter - Error Based - Double Quotes Double Parenthesis - 8
- More labs comming soon
- Error Based
- Union Based
- Double Query Based
- Blind Boolean Based
- Blind Time Based
- Time Based
- GET Based Parameter
- POST Based Parameter
- Header Based Parameter
- Cookies Based Parameter
- Type
sudo mysql -u root
- Enter this command mysql shell:
grant all privileges on *.* to root@localhost identified by '' with grant option;
- Type
\q
orquit
to exit mysql shell
- Copy & Paste the Command in your linux System
sudo git clone https://github.com/PushpenderIndia/SQLiWeb && sudo mv SQLiWeb/sqli_challenges /var/www/html && sudo rm -r SQLiWeb && sudo service apache2 start && sudo service mysql start && firefox http://127.0.0.1/sqli_challenges/php/db/setup.php &
If you have changed the MYSQL Credentials, You will get error in your browser, after running above command Follow below instructions for updating mysql creds
- Update MySQL Credentials in
db_config.php
file, present in/var/www/html/sqli_challenges/php/db/
<?php
// Update MySQL DB Credentials
$dbuser = "root";
$dbpass = "";
...
...
?>
- By Default
db_creds.php
will have MYSQL Username:root
& Password: "" (No Password) - Run this command to setup Database:
firefox http://127.0.0.1/sqli_challenges/php/db/setup.php &
or simply visithttp://127.0.0.1/sqli_challenges/php/db/setup.php
using web browser. - After Setting up the website, it will redirect you to
http://127.0.0.1/sqli_challenges/index.php
- Then whenever you want to start website, just run this command:
sudo service apache2 start && sudo service mysql start && firefox http://127.0.0.1/sqli_challenges/index.php &