国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 開發 > PHP > 正文

php gzinflate無限加密與解決代碼

2024-05-04 21:58:50
字體:
來源:轉載
供稿:網友

PHP使用eval(gzinflate(str_rot13(base64_decode(‘BASE64加密后內容’))))核心代碼的解密下非擴展方式的php加密方法.

這里有個在線的,還不錯,木馬防殺還行,要保護代碼可就不行了,對應的寫了一個簡單的解密的,專門針對eval,這個原理很有用途.

特別說明:此解密程序好像一定得在PHP5上面使用,我在PHP4上面測試eval(gzinflate(str_rot13(base64_decode(‘BASE64加密后內容’))))內加密的代碼始終無法正常解密.

  1. <?php 
  2. //已經加密的文件內容 
  3. $a=”eval(gzinflate(str_rot13(base64_decode(‘這里面放BASE64代碼’))));”; 
  4. function decodephp($a) { 
  5. $max_level=300; //最大層數 
  6. for($i=0;$i<$max_level;$i++) { 
  7. ob_start();//開源代碼Vevb.com 
  8. eval(str_replace(‘eval’,'echo’,$a)); 
  9. $a = ob_get_clean(); 
  10. if(strpos($a,’eval(gzinflate(str_rot13(base64_decode’)===false) { 
  11. return $a; 
  12. echo decodephp($a); 
  13. ?> 

php使用N層加密eval(gzinflate(base64_decode(“codes”)))的破解,首先申明一下,這個并非是我原創,是我轉自一個國外的BLOG上面的,自己測試了下,覺得很好用的.

如果您想看的是PHP使用eval(gzinflate(str_rot13(base64_decode(‘BASE64加密后內容’))))核心代碼的解密,請移步這里查看:PHP使用eval(gzinflate(str_rot13(base64_decode(‘BASE64加密后內容’))))核心代碼的解密.

特別說明:此解密程序好像一定得在PHP5上面使用,我在PHP4上面測試eval(gzinflate(base64_decode(“codes”)))內加密的代碼始終無法正常解密,以下是代碼:

  1. <?php 
  2. /* 
  3. Taken from [url]http://www.php.net/manual/de/function.eval.php#59862[/url] 
  4. Directions: 
  5. 1. Save this snippet as decrypt.php 
  6. 2. Save encoded PHP code in coded.txt 
  7. 3. Create a blank file called decoded.txt (from shell do CHMOD 0666 decoded.txt) 
  8. 4. Execute this script (visit decrypt.php in a web browser or do php decrypt.php in the shell) 
  9. 5. Open decoded.txt, the PHP should be decrypted if not post the code on [url]http://www.ariadoss.com/forums/web-development/lamp[/url] 
  10. gzinflate執行加密代碼的解密方法翻譯為中文后的文字(此段漢字原始文件里面可沒.嘿) 
  11. 1. 把這整段腳本保存為decrypt.php 
  12. 2. 把需要解密的代碼保存為coded.txt并且和decrypt.php在同一目錄. 
  13. 3. 創建一個空白文件命名為 decoded.txt (必須把 decoded.txt 的權限設置為CHMOD 0666,也就是可以寫入的.當然,你可以不創建文件文件.只要文件夾有寫入權限,腳本便會自動創建一個名為decoded.txt的文檔. ) 
  14. 4. 運行解密腳本 (瀏覽器中運行decrypt.php 即訪問 http://您的域名/存放目錄/decrypt.php) 
  15. 5. 打開 decoded.txt, 代碼應該已經解密完成,如果出現錯誤請把代碼發送到 [url]http://www.ariadoss.com/forums/web- 
  16.  
  17. development/lamp[/url] 
  18. *///開源代碼Vevb.com 
  19. echo “nDECODE nested eval(gzinflate()) by DEBO Jurgen <mailto:jurgen@person.benn”; 
  20. echo “1. Reading coded.txtn”; 
  21. $fp1 = fopen (“coded.txt”, “r”); 
  22. $contents = fread ($fp1filesize (“coded.txt”)); 
  23. fclose($fp1); 
  24. echo “2. Decodingn”; 
  25. while (preg_match(“/eval(gzinflate/”,$contents)) { 
  26. $contents=preg_replace(“/<?|?>/”, “”, $contents); eval(preg_replace(“/eval/”, “$contents=”, $contents)); } echo “3. Writing decoded.txtn”; $fp2 = fopen(“decoded.txt”,”w”); fwrite($fp2, trim($contents)); fclose($fp2); 
  27. ?> 

再簡單的說下gzinflate,eval(gzinflate(base64_decode(“codes”)));decoding-eval-gzinflate-base64_decode的使用方法,保存上面的程序文件decrypt.php,當然文件名可以自己設置.

在此文件的同一目錄建立一個coded.txt,這個里面放的是加密過的代碼,也就是eval(gzinflate(base64_decode(“codes”)))當中的codes;

再說明白點就是是要解密的eval(gzinflate(base64_decode(“codes”)))里面執行的密原文.執行保存過的文件decrypt.php,這樣便會在同一目錄生成一個decoded.txt的txt文檔,打開此文檔.里面就是那些被加密的原始代碼.

發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
主站蜘蛛池模板: 东阳市| 三门县| 福贡县| 历史| 九龙县| 若羌县| 开阳县| 蓝田县| 贡嘎县| 饶平县| 东阿县| 桂平市| 婺源县| 沙田区| 五指山市| 武城县| 内丘县| 连平县| 济南市| 湟源县| 怀远县| 临高县| 定结县| 固安县| 柳州市| 华阴市| 台东县| 东明县| 鹤壁市| 三穗县| 贺兰县| 花莲县| 香港 | 固镇县| 玛多县| 泸州市| 九寨沟县| 巫山县| 望都县| 安丘市| 怀远县|