The SQL Injection Testing Portal is a PHP-based application designed to help users practice SQL injection techniques on a local server. This tool demonstrates a SQL injection vulnerability for educational purposes. Use it to test your SQL injection skills and understand how to exploit such vulnerabilities in a controlled environment.
First, clone the repository to your local machine: ```bash git clone https://github.com/samrat-sarkar/sql-injection-testing-portal.git cd sqli-testing-portal
Import the SQL File
To set up the database, you need to import the sqli.sql
file into your MySQL server.
Using the MySQL Command Line
yourusername
and yourpassword
with your MySQL credentials.Using phpMyAdmin
sqli
.sqli
database and navigate to the “Import” tab.sqli.sql
file and click “Go” to import it.Configure Database Credentials Edit the PHP file to update the database connection settings if necessary: $host = “localhost”; $username = “root”; $password = “”; $database = “sqli”;
Run the Application
htdocs
in XAMPP).http://localhost/sql-injection-testing-portal
.Usage Use the search form on the application page to input various SQL payloads and test SQL injection. The results and data from the user inputs will be displayed, demonstrating the effects of SQL injection.