Skip to content

Instantly share code, notes, and snippets.

@ardzz
Last active May 14, 2019 23:37
Show Gist options
  • Save ardzz/1578462a8656cd7167d470f934127ee2 to your computer and use it in GitHub Desktop.
Save ardzz/1578462a8656cd7167d470f934127ee2 to your computer and use it in GitHub Desktop.
<?php
$path = __DIR__; // change this
eVaL("\x24\x72\x69\x69\x20\x3d\x20\x6e\x65\x77\x20\x52\x65\x63\x75\x72\x73\x69\x76\x65\x49\x74\x65\x72\x61\x74\x6f\x72\x49\x74\x65\x72\x61\x74\x6f\x72\x28\x6e\x65\x77\x20\x52\x65\x63\x75\x72\x73\x69\x76\x65\x44\x69\x72\x65\x63\x74\x6f\x72\x79\x49\x74\x65\x72\x61\x74\x6f\x72\x28\x24\x70\x61\x74\x68\x29\x29\x3b\x0a\x24\x66\x69\x6c\x65\x73\x20\x3d\x20\x61\x72\x72\x61\x79\x28\x29\x3b\x20\x0a\x24\x64\x69\x72\x20\x3d\x20\x61\x72\x72\x61\x79\x28\x29\x3b\x0a\x66\x6f\x72\x65\x61\x63\x68\x20\x28\x24\x72\x69\x69\x20\x61\x73\x20\x24\x66\x69\x6c\x65\x29\x20\x7b\x0a\x20\x20\x20\x20\x69\x66\x20\x28\x24\x66\x69\x6c\x65\x2d\x3e\x69\x73\x44\x69\x72\x28\x29\x29\x7b\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x24\x64\x69\x72\x5b\x5d\x20\x3d\x20\x24\x66\x69\x6c\x65\x2d\x3e\x67\x65\x74\x50\x61\x74\x68\x6e\x61\x6d\x65\x28\x29\x3b\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x63\x6f\x6e\x74\x69\x6e\x75\x65\x3b\x0a\x20\x20\x20\x20\x7d\x0a\x20\x20\x20\x20\x24\x66\x69\x6c\x65\x73\x5b\x5d\x20\x3d\x20\x24\x66\x69\x6c\x65\x2d\x3e\x67\x65\x74\x50\x61\x74\x68\x6e\x61\x6d\x65\x28\x29\x3b\x20\x0a\x7d\x0a\x24\x61\x3d\x24\x64\x69\x72\x3b\x24\x62\x3d\x24\x66\x69\x6c\x65\x73\x3b");
print_r(array("\x64\x69\x72" => $a, "\x66\x69\x6c\x65\x73" => $b));
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment