Home > Article > Backend Development > shall never surrender PHP online encryption decryption program written by wiki-shan
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 ('DDNUSPTVADQQ2VN7+OFGU6VPB+Eye4eisa2lhazn2op343EF9 // F7+1S+JD1KBNZ9098jlGT1LSZMZTJ/S/S/S WNS/ZRP5JD/XZlrter6i6ueqkkShuxMFWMEQNHJFCDH7QCVLMY60KU0QVLFMMMSMO5EAO7RTF3GKEM+RGMedag96ycxmzf+ 64ZYB80bDE2ZNHTA/CFBBXGMA66VW9uczl6utunr8bxPRSB+ZIAGCM+PJXOTHPBPOJARMVXB8XJD1B7RMGC/G0VSFNLCVW7MPJPWWw/VNS0L1T nalytgp5gmzt1idewat3xonvendowf5zbujcdyiienFXENSX74GMNPTZGOBYRZO/1zz9cmjiktxdbdoe4x+JigBTDGNLXWXJDA6I/HH7MTRIBAPDHFXWLDBPEONBZDFS EK8XNZFTB501FLICFB8OO+W8DOYMQESF3P6SQ6SQX4KEEAZ2Y61ehmeoHmeoqbikvizxxj08JHMRXXMSHTZ4PK1VV2ktdLDB7XPCMZPXDVIW6GFYS DCJZ93W2HFQSQRQLIFWK82CBLUFV+ CQHU+73AT7PL3FKMHXA0ZJTPLVZ7BEPGE/YIO1WMELX/LIUXU+IKV9ZWlyRWryz32LLLZCDMBICUAFFLAL+PWDRPIAA68JFJFJFJFJFJFJFJF9UHLJLJLJL2UFP5 TKBM+Pybu504baq0nurfej1cxyaptgokimjkzioj4rhWXCVP2SZ04QBNKYWM3XQIK659HWXC+DQN75DIFD9LDWZCZ/0DWZUQGBNFS9UT ND+XRQRP1G5DK9LOQMQK3AMVCJYRDCZUYVHQSVTayhr58emmm+807DUKI4BTEMGRTXK+Yidqa0BFJRTAQLUBVZN2Q02HCN121z2etwe0ndacmxh hu // 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));
}
}
?>
The above introduces the PHP online encryption decryption program written by shall never surrender wiki-shan, including the content of shall never surrender. I hope it will be helpful to friends who are interested in PHP tutorials.