Php eval-based N-layer encryption gzinflatestr_rot13base64 cracking method _ PHP Tutorial

Source: Internet
Author: User
Php eval-based layer-N encryption gzinflatestr_rot13base64 cracking method. Php Tutorial eval-based N-layer encryption gzinflatestr_rot13base64 cracking method PHP uses eval (gzinflate (str_rot13 (base64_decode (BASE64 encrypted content )))) unextended php for decryption of core code tutorial on 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.

// 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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.