Skip to content

Instantly share code, notes, and snippets.

@sinansh
Created January 30, 2017 19:51
Show Gist options
  • Save sinansh/4ad36a1d3805deb0fe8fb9aa6b8a2f1e to your computer and use it in GitHub Desktop.
Save sinansh/4ad36a1d3805deb0fe8fb9aa6b8a2f1e to your computer and use it in GitHub Desktop.
ctf web challenges
<?php
echo $_GET["name"];
?>
<?php
if(preg_match('/alert/i', $GET["name"])){
die("error");
}
echo "Hello ".$GET["name"];
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment