Hands-On SQL Injection Tutorial #2 |
1. Reset the Database Before Using It |
2. SQL Database StructureThe database namedsqlol contains the two tables shown below.
|
3. Blocking ApostropheThis form deletes apostrophes from the name before using it in a SQL query. However, the numerical field is exploitable.Try the inputs below in this form to see how it works.
Performs This Query:
|
Values to TryFind User
Detect Filtering
Detect Vulnerability
Test for 1 Column Returned
Test for 2 Columns Returned
Find Database Names
Find Tables in sqlol Database
Find Columns within ssn Table
Dump Names and SSNs
Upload a PHP Shell
|
4. Blocking SELECTThis form uses this code to remove SELECT:
Try the inputs
below in this form to see how it works.
Performs This Query:
|
Values to TryFind User
Detect Filtering
Detect Vulnerability
Test for 2 Columns Returned: FAILS
Test for 2 Columns Returned: SUCCEEDS
Test for 2 Columns Returned: SUCCEEDS
|