Last active
April 30, 2017 04:00
-
-
Save appkr/cf274cd34165a7c8148f4fe41c43662b to your computer and use it in GitHub Desktop.
SQL Injection Proof Of Conecpt
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$id = $_GET['id'] ?? null; | |
$sql ="SELECT * FROM posts WHERE id = {$id}"; | |
?> | |
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>SQL Injection PoC</title> | |
</head> | |
<body> | |
<pre> | |
<code><?= $sql; ?></code> | |
</pre> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment