Skip to content

Instantly share code, notes, and snippets.

@laiso
Created January 25, 2012 06:47
Show Gist options
  • Save laiso/1675125 to your computer and use it in GitHub Desktop.
Save laiso/1675125 to your computer and use it in GitHub Desktop.
<?php
$_GET = (isset($_GET))? $_GET: array();
$_GET['injection'] = '1 && system("sudo ls /");';
$assertion = '1 == ' . $_GET['injection'];
echo $assertion;
assert($assertion);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment