Skip to content

Instantly share code, notes, and snippets.

@memdufaizan
Forked from tbvinh/get the source code php.txt
Created September 23, 2022 10:13
Show Gist options
  • Select an option

  • Save memdufaizan/f254b993c088f0cb82c30f88146a112b to your computer and use it in GitHub Desktop.

Select an option

Save memdufaizan/f254b993c088f0cb82c30f88146a112b to your computer and use it in GitHub Desktop.
Revert the PHP code of "pH-7/Obfuscator-Class"
#Edit the obfuscate file:
1. Find the line: "$___();$__________($______($__($_))); $________=$____();"
2. Delete all to end of file
3. Add some lines to see the original source code:
--------------------------------------
$source = base64_decode(gzuncompress(base64_decode($_)));
$idx = strpos($source, "eval(\$___)");
$orgSource = substr($source, $idx + 24);
echo "<br/>ORIGIN SOURCE<br/><pre> $orgSource </pre> <br/>";
---------------------------------------
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment