Skip to content

Instantly share code, notes, and snippets.

@n3o77
Created January 29, 2013 16:52
Show Gist options
  • Save n3o77/4665748 to your computer and use it in GitHub Desktop.
Save n3o77/4665748 to your computer and use it in GitHub Desktop.
Decode PHP eval obfuscation
$string = "BASE 64 STRING";
$decode = strrev('edoced_46esab');
$result = eval(str_replace('eval', 'return', $decode($string)));
while (strstr($result, 'eval')) {
$result = eval(str_replace('eval', 'return', $result));
}
echo("<pre>".$result."</pre>");
@SciFi1818
Copy link

Amazing.... really helpful

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment