찾다
php教程php手册PHP eval加密的破解方法

PHP eval加密的破解方法

Jun 13, 2016 am 11:11 AM
evalphp한 번배우다암호화우리를방법개념깊이 들어가다~의금이 가다언어설명하다

今天我们来深入的了解一下PHP语言的深层次概念。

特别说明:此PHP eval加密解密程序好像一定得在PHP5上面使用,

我在PHP4上面测试eval(gzinflate(base64_decode("codes")))内加密的代码始终无法正常解密

以下是PHP eval加密破解的代码:

  1.  ?php  
  2. /*  
  3. Taken from http://www.php.net/manual/
    de/function.eval.php#59862  
  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 http://www.ariadoss.
    com/forums/web-development/lamp  
  10.  
  11. gzinflate执行PHP eval加密代码的解密方法翻译为中文后的文字
    (此段汉字原始文件里面可没.嘿)  
  12. 1. 把这整段脚本保存为decrypt.php  
  13. 2. 把需要解密的代码保存为coded.txt并且和decrypt.php在同一目录.  
  14. 3. 创建一个空白文件命名为 decoded.txt (必须把 decoded.
    txt 的权限设置为CHMOD 0666,也就是可以写入的.当然,你可以
    不创建文件文件.只要文件夹有写入权限,脚本便会自动创建一个
    名为decoded.txt的文档. )  
  15. 4. 运行PHP eval加密解密脚本 (浏览器中运行decrypt.php 即访问 http:
    //您的域名/存放目录/decrypt.php)  
  16. 5. 打开 decoded.txt, 代码应该已经解密完成,如果出现错误请
    把代码发送到 http://www.ariadoss.com/forums/web-
    development/lamp  
  17. */  
  18. echo "nDECODE nested eval(gzinflate()) by DEBO 
    Jurgen 
    mailto:jurgen@person.benn";  
  19. echo "1. Reading coded.txtn";  
  20. $fp1 = fopen ("coded.txt", "r");  
  21. $contents = fread ($fp1, filesize ("coded.txt"));  
  22. fclose($fp1);  
  23. echo "2. Decodingn";  
  24. while (preg_match("/eval(gzinflate/",$contents)) {  
  25. $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);  
  26. ?> 

再简单的说下gzinflate,eval(gzinflate(base64_decode("codes")));decoding-eval-gzinflate-base64_decode的使用方法.
保存上面的程序文件decrypt.php,当然文件名可以自己设置.

在此文件的同一目录建立一个coded.txt,这个里面放的是PHP eval加密过的代码,也就是eval(gzinflate(base64_decode("codes")))当中的codes;

再说明白点就是是要解密的eval(gzinflate(base64_decode("codes")))里面执行的密原文.执行保存过的文件decrypt.php,这样便会在同一目录生成一个decoded.txt的txt文档,打开此文档.里面就是那些PHP eval加密的原始代码.


성명
본 글의 내용은 네티즌들의 자발적인 기여로 작성되었으며, 저작권은 원저작자에게 있습니다. 본 사이트는 이에 상응하는 법적 책임을 지지 않습니다. 표절이나 침해가 의심되는 콘텐츠를 발견한 경우 admin@php.cn으로 문의하세요.

핫 AI 도구

Undresser.AI Undress

Undresser.AI Undress

사실적인 누드 사진을 만들기 위한 AI 기반 앱

AI Clothes Remover

AI Clothes Remover

사진에서 옷을 제거하는 온라인 AI 도구입니다.

Undress AI Tool

Undress AI Tool

무료로 이미지를 벗다

Clothoff.io

Clothoff.io

AI 옷 제거제

AI Hentai Generator

AI Hentai Generator

AI Hentai를 무료로 생성하십시오.

인기 기사

R.E.P.O. 에너지 결정과 그들이하는 일 (노란색 크리스탈)
4 몇 주 전By尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. 최고의 그래픽 설정
4 몇 주 전By尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. 아무도들을 수없는 경우 오디오를 수정하는 방법
4 몇 주 전By尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. 채팅 명령 및 사용 방법
4 몇 주 전By尊渡假赌尊渡假赌尊渡假赌

뜨거운 도구

Dreamweaver Mac版

Dreamweaver Mac版

시각적 웹 개발 도구

에디트플러스 중국어 크랙 버전

에디트플러스 중국어 크랙 버전

작은 크기, 구문 강조, 코드 프롬프트 기능을 지원하지 않음

Atom Editor Mac 버전 다운로드

Atom Editor Mac 버전 다운로드

가장 인기 있는 오픈 소스 편집기

VSCode Windows 64비트 다운로드

VSCode Windows 64비트 다운로드

Microsoft에서 출시한 강력한 무료 IDE 편집기

SublimeText3 Mac 버전

SublimeText3 Mac 버전

신 수준의 코드 편집 소프트웨어(SublimeText3)