Home >Backend Development >PHP Tutorial >PHP online encryption decryption program written by wiki-shan_PHP tutorial

PHP online encryption decryption program written by wiki-shan_PHP tutorial

WBOY
WBOYOriginal
2016-07-21 15:50:181034browse

Correspondingly, I wrote a simple decryption, specifically for eval. This principle is very useful, so write it down here.

Copy code The code is as follows:

/*
author:zhiwushan
date:20080411
*/
 
//Encrypted file content
$a="
eval(gzinflate(str_rot13(base64_decode('DdNUsptVAADQq2vn7+oFGU6VPb+EyE4EiSA2LhAZUZN2OP343eF9//f7 +1S +Jd1KbNZ90SVY/jUv098JLgT1lSZmztJ/s/wNs/zrp5jd/XZLrter6I6UEqkkshUXmfWmEQNnhJfcdH7qCvlmY60ku0QVlfMMSUMnMO5EAo7RTF3GKem+RGMeDAg96YCxmZf+wUVdJUVUJTyI d9BivvZlTpv64zYb80BDE2znHTa/CFBbxGMa66VW9ucZl6uTunr8bXPRSB+ziagCm+pJxOtHPbpOJarMvXb8XjD1B7RMGC/g0vsFnElCvW7KUD1OLRPt7MPJPVJpwW/vnS0l1TnALytgP5GMZt 1IdEWat3XONVendoWF5ZbuJcdYIIeNfxeNsX74gMnpTZgoBByrZo/1ZZ9CmjIktXDBdoe4X+Jig btDgnlXWxJDa6i/hh7MtRibAPdhFxwldbPEonbZdfSeK8XNzFTB501FlIcFB8Oo+W8dOYmQeSf3 P6q6SQx4KeEAZ2Y6Cnm6OeHMEOqBkkvIzXj08Jh5HMrXXMSHtz4Pk1wvV2kTDlDZoxjKTzd b7XpcMzPXDvIW6gfYsdcJz93w2hFQsQRQliFwK82cblUfV+CQHU+73AT7PL3fKMHXa0ZJtp LVZ7bEPGE/yIO1Wmelx/LiUXU+Ikv9ZwLyRWRYZ32ElLZCdmBIcUAfFlAl+pwdrpiucej6AA68JfQJfJuIhmQOqk9UHlJl2Ufp5tKbM+PYBU504baq0nurFEj1cXYaPtGOKimjKzIOJ4rHWXCvP2SZ0 4MsA4qbNkYwm3xqIk6VWKLLC659Hwxc+DQN75dIOfd9K /asb3ldWzcZ/0dwzUqGbNfs9uTnD+xRQRp1g5dK9loQMQk3amvCjyrdCzuYVHqsVTayHr58EMmM+807dukI4bTEMgRtxk+YIdqA0BfjrtAQLuBvZtHHsRPzvN2Q02hCn121Z2ETWe0nDACMx hhu//Pn569/vv8t/R8='))));
";
echo decodephp($a);
 
function decodephp($a ) {
$max_level=300; //Maximum number of levels
for($i=0;$i<$max_level;$i++) {
Ob_start();
eval(str_replace(' eval','echo',$a));
$a = ob_get_clean();
if(strpos($a,'eval(gzinflate(str_rot13(base64_decode')===false) {
             return $a;
                                              



http://www.bkjia.com/PHPjc/319411.html
www.bkjia.com

truehttp: //www.bkjia.com/PHPjc/319411.htmlTechArticle correspondingly wrote a simple decryption, specifically for eval. This principle is very useful, so write it down here. Copy the code The code is as follows: ?php /* author:zhiwushan date:20080411 */ //Already...
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn