Php Tutorial: eval-based layer-N Encryption gzinflate str_rot13 base64 Cracking Method
PHP uses eval (gzinflate (str_rot13 (base64_decode ('base64 encrypted content') to decrypt core code
Non-extended php encryption method:
Here is an online product, which is not bad. It's okay to defend against Trojans. It's okay to protect the code.
Write a simple decryption,
Specifically for eval. This principle is useful.
Note: This decryption program must be used on PHP5,
I tested eval (gzinflate (str_rot13 (base64_decode ('base64 encrypted content ') on PHP4 and the encrypted code cannot be decrypted normally.
<? Php
// Encrypted File Content
$ A = "eval (gzinflate (str_rot13 (base64_decode ('put BASE64 Code '))));";
Function decodephp ($ ){
$ Max_level = 300; // maximum number of layers
For ($ I = 0; $ I <$ max_level; $ I ++ ){
Ob_start ();
Eval (str_replace ('eval', 'echo ', $ ));
$ A = ob_get_clean ();
If (strpos ($ a, 'eval (gzinflate (str_rot13 (base64_decode') === false ){
Return $;
}
}
}
Echo decodephp ($ );
?>
Php uses N-layer encryption to crack eval (gzinflate (base64_decode ("codes ")
First, I declare that this is not my original, it is me