SQL injection --- Writeup for natas14
Problem: find the password of natas15.
The url of this problem is 'http://natas14.natas.labs.overthewire.org/'
Step 1: view the source code
As we can see that, the server will deliver the password if the SQL return data.
Step 2: SQL injection
What we only need to do is to make the SQL query be true.
The "#" means comment out the following condition.
PS: It's a simple SQL injection, but we have to pay attention to the source code to determine either it needs double quotation or single quotation
The url of this problem is 'http://natas14.natas.labs.overthewire.org/'
Step 1: view the source code
As we can see that, the server will deliver the password if the SQL return data.
Step 2: SQL injection
What we only need to do is to make the SQL query be true.
The "#" means comment out the following condition.
PS: It's a simple SQL injection, but we have to pay attention to the source code to determine either it needs double quotation or single quotation