微盾PHP腳本加密專家php解密算法
更新時間:2020年09月13日 12:56:36 投稿:mdxy-dxy
威盾PHP加密專家解密算法 By:Neeao ,碰到使用威盾PHP加密專家加密的代碼,可以用下面的代碼查看源文件。
第一種方法
<?php /*********************************** *威盾PHP加密專家解密算法 By:Neeao *http://Neeao.com *2009-09-10 ***********************************/ $filename="play-js.php";//要解密的文件 $lines = file($filename);//0,1,2行 //第一次base64解密 $content=""; if(preg_match("/O0O0000O0\('.*'\)/",$lines[1],$y)) { $content=str_replace("O0O0000O0('","",$y[0]); $content=str_replace("')","",$content); $content=base64_decode($content); } //第一次base64解密后的內(nèi)容中查找密鑰 $decode_key=""; if(preg_match("/\),'.*',/",$content,$k)) { $decode_key=str_replace("),'","",$k[0]); $decode_key=str_replace("',","",$decode_key); } //查找要截取字符串長度 $str_length=""; if(preg_match("/,\d*\),/",$content,$k)) { $str_length=str_replace("),","",$k[0]); $str_length=str_replace(",","",$str_length); } //截取文件加密后的密文 $Secret=substr($lines[2],$str_length); //echo $Secret; //直接還原密文輸出 echo "<?php\n".base64_decode(strtr($Secret,$decode_key,'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/'))."?>"; ?>
微盾PHP腳本破解
<?php function get_filetree($path){ $tree = array(); foreach(glob($path . '/*') as $single){ if(is_dir($single)){ $tree = array_merge($tree,get_filetree($single)); } else { $tree[] = $single; } } return $tree; } function eval_decode($File) { $Lines = file($File); $Content; if(preg_match("/O0O0000O0\('.*'\)/", $Lines[1], $S)){ $Content = str_replace("O0O0000O0('", "", $S[0]); $Content = str_replace("')", "", $Content); $Content = base64_decode($Content); } else { return "file not encode!"; } $Key; if(preg_match("/\),'.*',/", $Content, $K)){ $Key = str_replace("),'", "", $K[0]); $Key = str_replace("',", "", $Key); } else { return "not decode key!"; } $Length; if(preg_match("/,\d*\),/", $Content, $K)){ $Length = str_replace("),", "", $K[0]); $Length = str_replace(",", "", $Length); } else { return "not decode base64 string!"; } $Secret = substr($Lines[2], $Length); $Decode = "<?php".base64_decode(strtr($Secret,$Key,'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/')) ."?>"; file_put_contents($File, $Decode); return "file decode success!"; } $filelist = get_filetree("D:/PHPnow/htdocs/1"); foreach($filelist as $value){ echo $value." :\t\t".eval_decode($value) . "\n\r<br>"; } ?>
如果還是不行推薦查看這篇文章:http://www.dbjr.com.cn/article/195521.htm
相關(guān)文章
php遞歸創(chuàng)建和刪除文件夾的代碼小結(jié)
有時候需要遞歸創(chuàng)建和刪除文件夾,那么就可以參考下面的代碼2012-04-04php調(diào)用nginx的mod_zip模塊打包ZIP文件
這篇文章主要介紹了php調(diào)用nginx的mod_zip模塊打包ZIP文件,需要的朋友可以參考下2014-06-06PHP遞歸遍歷指定目錄的文件并統(tǒng)計文件數(shù)量的方法
這篇文章主要介紹了PHP遞歸遍歷指定目錄的文件并統(tǒng)計文件數(shù)量的方法,涉及php文件及目錄操作的技巧,非常具有實用價值,需要的朋友可以參考下2015-03-03PHP實現(xiàn)自動登入google play下載app report的方法
這篇文章主要介紹了PHP實現(xiàn)自動登入google play下載app report的方法,較為詳細(xì)的講述了登陸下載APP及對應(yīng)的實現(xiàn)代碼,具有不錯的實用價值,需要的朋友可以參考下2014-09-09PHP實現(xiàn)的字符串匹配算法示例【sunday算法】
這篇文章主要介紹了PHP實現(xiàn)的字符串匹配算法,簡單描述了sunday算法的概念與原理,并結(jié)合實例形式分析了php基于sunday算法實現(xiàn)字符串匹配操作相關(guān)技巧,需要的朋友可以參考下2017-12-12Windows上PHP安裝redis擴展和igbinary擴展
php擴展就是php核心并不支持的功能,通過安裝擴展增加PHP的功能,在Windows上有兩種加載PHP擴展的方式:把擴展編譯進(jìn)?PHP,或者加載?DLL,加載預(yù)編譯的擴展是更簡單更被推薦的方式,要加載某擴展,需要在系統(tǒng)中有其相對應(yīng)的“.dll”文件2023-10-10