Skip to content

Instantly share code, notes, and snippets.

@appkr
Last active April 30, 2017 04:00
Show Gist options
  • Save appkr/cf274cd34165a7c8148f4fe41c43662b to your computer and use it in GitHub Desktop.
Save appkr/cf274cd34165a7c8148f4fe41c43662b to your computer and use it in GitHub Desktop.
SQL Injection Proof Of Conecpt
<?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