威盾解密
- 发表于
- PHP
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 |
<?php $file = '../admin/include/welcome.inc.php'; error_reporting(E_ERROR); header("content-Type: text/html; charset=gb2312"); set_time_limit(120); function Read($filename) { $handle = @fopen($filename,"r"); $filecode = @fread($handle,@filesize($filename)); @fclose($handle); return $filecode; } function weidun_decode($code) { $tmp = '';$tmp1 = '';$tmp2 = ''; $linearray = file($code); $keyarray = array(base64_decode('L08wTzAwMDBPMFwoJy4qJ1wpLw=='),base64_decode('L1wpLCcuKicsLw=='),base64_decode('LyxcZCpcKSwv'),base64_decode('TzBPMDAwME8wKCc='),base64_decode('QUJDREVGR0hJSktMTU5PUFFSU1RVVldYWVphYmNkZWZnaGlqa2xtbm9wcXJzdHV2d3h5ejAxMjM0NTY3ODkrLw==')); if(preg_match($keyarray[0],$linearray[1],$str)){$tmp = str_replace($keyarray[3],'',$str[0]);$tmp = str_replace('\')','',$tmp);$tmp = base64_decode($tmp);} if(preg_match($keyarray[1],$tmp,$str1)){$tmp1 = str_replace('),\'','',$str1[0]);$tmp1 = str_replace('\',','',$tmp1);} if(preg_match($keyarray[2],$tmp,$str2)){$tmp2 = str_replace('),','',$str2[0]);$tmp2 = str_replace(',','',$tmp2);} return '<?php'."\r\n".base64_decode(strtr(substr($linearray[2],$tmp2),$tmp1,$keyarray[4]))."\r\n".'?-->'; } echo '解密前: <textarea name="newcode" cols="80" rows="15">'.htmlspecialchars(Read($file)).'</textarea> '; echo '解密后: <textarea name="newcode" cols="80" rows="15">'.htmlspecialchars(weidun_decode($file)).'</textarea> '; ?> |
原文连接:威盾解密
所有媒体,可在保留署名、
原文连接
的情况下转载,若非则不得使用我方内容。