Php uses the N-layer encryption eval gzinflate str_rot13 base64 Cracking Method Summary

Source: Internet
Author: User

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

Related Article

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.