Php online encryption and decryption program written by wiki-shan _ php instance

Source: Internet
Author: User
Tags php online
I found the non-extended php encryption method: There is an online method, which is not bad. It's okay to defend against Trojans. It's okay to protect the code. A simple decryption is written for eval. This principle is very useful. Write it down here.

The Code is as follows:


/*
Author: zhiwushan
Data: 20080411
*/
 
// Encrypted File Content
$ A ="
Eval (gzinflate (str_rot13 (base64_decode ('signature + oFGU6VPb + signature/f7 + 1 S + signature/Signature/s/wNs/zrp5jd/Signature + RGMeDAg96YCxmZf + signature/Signature + ziagCm + examples/examples + CQHU + examples/yIO1Wmelx/LiUXU + examples + samples + DQN75dIOfd9K/asb3ldWzcZ/examples + 807dukI4bTEMgRtxk + templates // Pn569/vv8t/R8 = '))));
";
Echo decodephp ($ );
 
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 $;
}
}
}
?>

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.