当前位置:Gxlcms > PHP教程 > PHP奇怪的代码(破解),高手进(100分)

PHP奇怪的代码(破解),高手进(100分)

时间:2021-07-01 10:21:17 帮助过:23人阅读


回复讨论(解决方案)

php代码后面还有这段文字
/1WY6mdY6mdY6mxMHR/2ZXq7kO0hBvUEVxWOvNJ0VxPEuQtEtnL45gWY61P75Mr7untEtn7f/1WY5Mr76mdY6QU45gP75gP761P7iQFY5MdY5Mr761Pf/1P76mdY61P76Q745gP761P76mr7iv7EZXFFk5175x/guoGxA41LjVSOHhq8ZjSjsN/clxStZM/qvoIfA1HyFjB585AhyX0NAgSC5jHLkgA6vjN3N0H1ZmgEuQHdz4A1FNBRv1GivgJA54WzNq/5q0qjqxKBjX0nyoFGBXHfljS3kOxakCdJZEAgHVBCsRGe6m1w6MzxAhZL8vcT/w4Siv4+BXAckCAGiQFY6mr75MdY6mrS8oqoyj7f/1WY6mdY6mdY6Q4+mzS4BjBSkXNf/gG8Vg015NG8/wJNZEqGi5cAQE/GZVqSZXq2koIhBvUEljIhkRq4BvWhkoxbkoLaZOK7/w4+mzSSkXAcHjFGiQHSkXAcHjFGuoqLyoqcVCHwlVFGZnIhkO0MZwI7lRrEi5cAQXGXtQKRFqF2vNImVgAY54B/FxW/54BYiQ/TZOqaBO0gBvtSYmxEBVF2BO0gBvUEvQZcN1KzVxF/5NNStQyXFgqNVgG8zxWm5gIOvNH2vNIO5wUnBjI4BO0gBvtSYmxEBVF2BO0gBvUEvQZcN1KzVxF/5NNSiVcAQXqLlVzf/DjTasvLhsnxbDDPh8sMaDs+EDnn9DsafsszKajFX8j0cDXV3sDPh8jPU8jz3DlVbaXVb8vLanZaFgqNVgG8zxWm5gIOvNH2vNIO5wUnkCdGkXFKHONnivLEILiIIyn7/wIRFqF2vNImVgAY54B/FxW/54BYiQ/GkXF4yVFGtn4a/DsQavZS87gi2jqcZoq+mzSSBnrfFgqNVgG8zxWm5gIOvNH2vNIO5wUnyoWaBXGEBXJKBwtSY5gE6QZSs7giBVKSH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看看有没有什么工具吧。

其实没有必要研究这,倒是应该逐页面的检查一下系统哪一块有漏洞,没对用户提交的数据进行过滤。

这个代码是OA系统上的一个关键文件,好像处理都在该文件中进行
我想明白下,这段代码是什么意思,然后好对这个OA系统进行修改

人家的收费程序?自己一个一个的逆吧.不是分的事,是太耗时间了,而且还学不到什么新鲜东西...

死了心吧

呵呵 收费程序伤不起啊。

这个也不难

define('IN_ADMIN',True);require_once('include/common.php');include('include/excel_writer.class.php');if (GET_INC_CONFIG_INFO("opendate")<=get_date('H',PHP_TIME) &&GET_INC_CONFIG_INFO("enddate")<=get_date('H',PHP_TIME)){exit('对不起,系统被管理员关闭,开启时间为'.GET_INC_CONFIG_INFO("opendate").'点到'.GET_INC_CONFIG_INFO("enddate").'点');}else{if (GET_INC_CONFIG_INFO("configflag")=='0'){exit('对不起,系统被管理员关闭,请联系管理员!
关闭原因:'.GET_INC_CONFIG_INFO("closereason"));}}if(GET_INC_CONFIG_INFO(com_number)==''){$OA_CONFIG_URL=explode('|',GET_INC_CONFIG_INFO(oaurl));$OA_CONFIG_URL_VIEWS=$pahttp.$OA_CONFIG_URL[0];$resadduser = Utility::HttpRequest($OA_CONFIG_URL_VIEWS.'/API/adduser.php?oaurl='.$headurl.'');}if(GET_INC_CONFIG_INFO(com_url)!=$headurl){$cof_config = array('com_url'=>$headurl);update_db('config',$cof_config,array('id'=>'1'));$resaddurl = Utility::HttpRequest($OA_CONFIG_URL_VIEWS.'/API/oaurl.php?oaurl='.$headurl.'');}if($_GET["APIUSEROAID"]!=''){$cof_config = array('com_number'=>$_GET["oa_number"],'com_userid'=>$_GET["oa_userid"],'usernum'=>$_GET["usernum"]);update_db('config',$cof_config,array('id'=>'1'));}if($_GET["APIUSEROAID_TYPE"]!=''){SMS_PHONE_ADD_USER_OA();}if ($_GET[fileurl]!=""){$fileurl=$_GET[fileurl];}else{$fileurl="home";}define('ADMIN_ROOT',TOA_ROOT.$fileurl.'/');initGP(array('ac','do'));empty($ac) &&$ac = 'index';if ( !eregi('[a-z_]',$ac) ) $ac = 'index';if($fileurl=="ilohamail"){echo '';exit;}if($fileurl=="home"){echo '';exit;}if ( !$_USER->id ) {show_msg('你还没有登录,请先登录','login.php',1000);}if ( file_exists(ADMIN_ROOT."mod_{$ac}.php") ) {require_once(ADMIN_ROOT.'./mod_'.$ac.'.php');}else {exit;}function prompt($msg,$url='',$other='',$btntxt = '<<返回上一页') {echo '提示信息';echo '';if ($url) {echo '';}else {echo '';}echo '
提示信息
    ';if (is_array($msg)) {foreach ($msg as $value) {echo "
  1. {$value}
  2. ";}}else {echo "
  3. {$msg}
  4. ";}echo '
'.$other.'
'.$other.'
';exit();}

前面的代码就是简单的替换,后面的就是base64编码。

$OOO0000O0=$OOO000000***就是替换,类似%74%68%36就是url编码,类似“JE9PME9PMDAwMD0kT09...”就是base64编码。

赞同楼上 前面的代码就是简单的替换,后面的就是base64编码。

赞同楼上 前面的代码就是简单的替换,后面的就是base64编码。 那你做做看?!
#8 我已给出了解码的结果

老大可有独门秘籍或者破解利器?求分享 引用 11 楼 的回复:

赞同楼上 前面的代码就是简单的替换,后面的就是base64编码。
那你做做看?!
#8 我已给出了解码的结果

我也解出来了,要跟一下代码。
他只是把一些函数名字替换成变量用eval执行去了。

// 解密函数function pass($str){	Return  htmlspecialchars(base64_decode(strtr($str, 'rdQm10ORt/iu6A8YzFv5NqjVyBlkZHs2UKnh4GXEfS93cbaT7JwMgxoCLIe+PWDp=', 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/')));}echo nl2br(pass('/1WY6mdY6mdY6mxMHR/2ZXq7kO0hBvUEVxWOvNJ0VxPEuQtEtnL45gWY61P75Mr7untEtn7f/1WY5Mr76mdY6QU45gP75gP761P7iQFY5MdY5Mr761Pf/1P76mdY61P76Q745gP761P76mr7iv7EZXFFk5175x/guoGxA41LjVSOHhq8ZjSjsN/clxStZM/qvoIfA1HyFjB585AhyX0NAgSC5jHLkgA6vjN3N0H1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YQWglmLPuCFwYhJgZhLPHOzDYOWcYnZ+mzSSBnrflVA2yV/wyV4f/OxMBw4StRcAQXBTZXqKyoUUiQFbZoZUyV6U/RBKkRqGivd+mzSGyoKTtQtPkO4DswFoyjJxBVgPuoJSYnt+mzSWmzSWBjJMBvd+mzSGyoKTtQtPkO4DswFbZoHWYQWcl5Ln87gi2zgiBjAfkwrEYQWTkmLPuCF4Yh7THRtD/McAQXGXtQU4HV/civd+mzSGyoKTtQZPHRtUyoJKZC6WtX/E6ntDYRF4YhJSkEdxHQdgsVdGYv/nHVFgkoLntOAcyVAMYv/nHVFgkoLntRBKkRqGYvtEunFnHOIgsRza/wtUkoIhkOGhlMgnHoGaBOWCuXJTyo0gljWaYq7E/wL4HV/cunHZ/wtUuMLXkX/MZmcEunFTHOKGZnLEYQWgBmLPuCFwYnZ+mzSWBjJMBvd+mzSGyoKTtQZPHRtUyoJKZC6WtX/E6ntDYRF4YhJSkEdxHQdgsVdGYv/nHVFgkoLntOAcyVAMYv/nHVFgkoLntRBKkRqGYvtEunFnHOIgsRza/wtUkoIhkOGhlMgnlOGMHOWwsvInyjA3iQ4ntQPD/XInZCr+/wL4kCFfBVta/M7THOzDYQWgZhLE87gi2zgiBjAfkwrEYQWgyj/cB5LPuo/TBR4DYQWfHOxcYnZ+mzSGsOGgiQ4+mzSWmzf='));

我分享下之前我遇到加密文件怎么处理的, 砖头轻拍哈
本人之前也在网上找了一番, 直接解密是非常头疼的, 我试过, 发觉加了好几次, 后来放弃了, 除非有工具哈, 我个人是没找到, 不知道其他人找到没
后来发觉, 这种加密文件, 一般都是require进来的,
debug看下 require进来的结果是最容易不过的方法

老大可有独门秘籍或者破解利器?求分享引用 12 楼 的回复:

引用 11 楼 的回复:

赞同楼上 前面的代码就是简单的替换,后面的就是base64编码。
那你做做看?!
#8 我已给出了解码的结果

老大分享一点脑浆给你,我也想要。

绕人归绕人,想明白了其实也很简单

function foo0($code) {  $code = str_replace('__FILE__', "'$code'", str_replace('eval', '$code=', file_get_contents($code)));  eval('?>' . $code);  return get_defined_vars();}function foo1($code) {  extract($code);  $code = str_replace("eval", '$code=', $code);  eval($code);  return get_defined_vars();}$fn = '新建 文本文档 (7).txt';$fn = 'phpChartX/phpChart.php';$fn = 'phpChartX/server/cls_axes.php';$p = foo0($fn);//$p = foo1($p);//视情况执行若干次,直到 echo $p['code']; 
输出的是代码//$p = foo1($p);echo $p['code'];

引用 11 楼 的回复:

赞同楼上 前面的代码就是简单的替换,后面的就是base64编码。
那你做做看?!
#8 我已给出了解/码的结果
对于非zend使用的加/密,其实解密程序就在他的代码里,而楼主标0楼的代码就是解/码代码。
其实就是替换和base64解码过程。
解码过程:

$OOO0O0O00=__FILE__;echo $OOO0O0O00;$OOO000000=urldecode( '%74%68%36%73%62%65%68%71%6c%61%34%63%6f%5f%73%61%64%66%70%6e%72 ');echo $OOO000000 . '
'$OO00O0000=3788;$OOO0000O0 = $OOO000000{4}.$OOO000000{9}.$OOO000000{3}.$OOO000000{5};echo $OOO0000O0 . '
';$OOO0000O0.= $OOO000000{2}.$OOO000000{10}.$OOO000000{13}.$OOO000000{16};echo $OOO0000O0 . '
';$OOO0000O0.= $OOO0000O0{3}.$OOO000000{11}.$OOO000000{12}.$OOO0000O0{7}.$OOO000000{5};echo $OOO0000O0 . '
';$O0O0000O0= 'OOO0000O0 ';echo $$O0O0000O0 . '
';$str = 'JE9PME9PMDAwMD0kT09PMDAwMDAwezE3fS4kT09P....';echo base64_decode($str);// 运行结果:$OO0OO0000=$OOO000000{17}.$OOO000000{12}.$OOO000000{18}.$OOO000000{5}.$OOO000000{19};if(!0)$O000O0O00=$OO0OO0000($OOO0O0O00,'rb');$OO0OO000O=$OOO000000{17}.$OOO000000{20}.$OOO000000{5}.$OOO000000{9}.$OOO000000{16};$OO0OO00O0=$OOO000000{14}.$OOO000000{0}.$OOO000000{20}.$OOO000000{0}.$OOO000000{20};$OO0OO000O($O000O0O00,1160);$OO00O00O0=($OOO0000O0($OO0OO00O0($OO0OO000O($O000O0O00,380),'rdQm10ORt/iu6A8YzFv5NqjVyBlkZHs2UKnh4GXEfS93cbaT7JwMgxoCLIe+PWDp=','ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz01234567echo '
';$OO0OO0000=$OOO000000{17}.$OOO000000{12}.$OOO000000{18}.$OOO000000{5}.$OOO000000{19};echo $OO0OO0000 . '
';$OO0OO000O=$OOO000000{17}.$OOO000000{20}.$OOO000000{5}.$OOO000000{9}.$OOO000000{16};echo $OO0OO000O . '
';$OO0OO00O0=$OOO000000{14}.$OOO000000{0}.$OOO000000{20}.$OOO000000{0}.$OOO000000{20};echo $OO0OO00O0 . '
';

自此基本上解/码信/息就足够了。剩下的就是考眼力了,因为作者为了混/淆使用了字母O和数字0
当然更聪明的办法就是使用代码去替换。

"php代码后面还有这段文字"其实也是base64编码,只是把base64编码表打乱了而已。

为了证明一下我#20楼的观点,几年前我写了篇 《关于base64加密》把decode_base64($str)函数中的码表替换成

$base64_alphabet = array('r' => 0, 'd' => 1, 'Q' => 2, 'm' => 3, '1' => 4, '0' => 5, 'O' => 6, 'R' => 7,   't' => 8, '/' => 9, 'i' => 10, 'u' => 11, '6' => 12, 'A' => 13, '8' => 14, 'Y' => 15,   'z' => 16, 'F' => 17, 'v' => 18, '5' => 19, 'N' => 20, 'q' => 21, 'j' => 22, 'V' => 23,   'y' => 24, 'B' => 25, 'l' => 26, 'k' => 27, 'Z' => 28, 'H' => 29, 's' => 30, '2' => 31,   'U' => 32, 'K' => 33, 'n' => 34, 'h' => 35, '4' => 36, 'G' => 37, 'X' => 38, 'E' => 39,   'f' => 40, 'S' => 41, '9' => 42, '3' => 43, 'c' => 44, 'b' => 45, 'a' => 46, 'T' => 47,   '7' => 48, 'J' => 49, 'w' => 50, 'M' => 51, 'g' => 52, 'x' => 53, 'o' => 54, 'C' => 55,   'L' => 56, 'I' => 57, 'e' => 58, '+' => 59, 'P' => 60, 'W' => 61, 'D' => 62, 'p' => 63, '=' => 64);

利用这个函数可以直接解码楼主的“php代码后面还有这段文字”.
解码结果
$OO00O00O0=str_replace('__FILE__',"'".$OOO0O0O00."'",($OOO0000O0($OO0OO00O0($OO0OO000O($O000O0O00,$OO00O0000),'rdQm10ORt/iu6A8YzFv5NqjVyBlkZHs2UKnh4GXEfS93cbaT7JwMgxoCLIe+PWDp=','ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/'))));fclose($O000O0O00);eval($OO00O00O0); define('IN_ADMIN',True); require_once('include/common.php'); include('include/excel_writer.class.php'); if (GET_INC_CONFIG_INFO("opendate")<=get_date('H',PHP_TIME) &&GET_INC_CONFIG_INFO("enddate")<=get_date('H',PHP_TIME)){ exit('对不起,系统被管理员关闭,开启时间为'.GET_INC_CONFIG_INFO("opendate").'点到'.GET_INC_CONFIG_INFO("enddate").'点'); }else{ if (GET_INC_CONFIG_INFO("configflag")=='0'){ exit('对不起,系统被管理员关闭,请联系管理员!
关闭原因:'.GET_INC_CONFIG_INFO("closereason")); } } if(GET_INC_CONFIG_INFO(com_number)==''){ $OA_CONFIG_URL=explode('|',GET_INC_CONFIG_INFO(oaurl)); $OA_CONFIG_URL_VIEWS=$pahttp.$OA_CONFIG_URL[0]; $resadduser = Utility::HttpRequest($OA_CONFIG_URL_VIEWS.'/API/adduser.php?oaurl='.$headurl.''); } if(GET_INC_CONFIG_INFO(com_url)!=$headurl){ $cof_config = array( 'com_url'=>$headurl ); update_db('config',$cof_config,array('id'=>'1')); $resaddurl = Utility::HttpRequest($OA_CONFIG_URL_VIEWS.'/API/oaurl.php?oaurl='.$headurl.''); } if($_GET["APIUSEROAID"]!=''){ $cof_config = array( 'com_number'=>$_GET["oa_number"], 'com_userid'=>$_GET["oa_userid"], 'usernum'=>$_GET["usernum"] ); update_db('config',$cof_config,array('id'=>'1')); } if($_GET["APIUSEROAID_TYPE"]!=''){ SMS_PHONE_ADD_USER_OA(); } if ($_GET[fileurl]!=""){ $fileurl=$_GET[fileurl]; }else{ $fileurl="home"; } define('ADMIN_ROOT',TOA_ROOT.$fileurl.'/'); initGP(array('ac','do')); empty($ac) &&$ac = 'index'; if ( !eregi('[a-z_]',$ac) ) $ac = 'index'; if($fileurl=="ilohamail"){ echo ''; exit; } if($fileurl=="home"){ echo ''; exit; } if ( !$_USER->id ) { show_msg('你还没有登录,请先登录','login.php',1000); } if ( file_exists(ADMIN_ROOT."mod_{$ac}.php") ) { require_once(ADMIN_ROOT.'./mod_'.$ac.'.php'); }else { exit; } function prompt($msg,$url='',$other='',$btntxt = '<<返回上一页') { echo '提示信息'; echo ''; if ($url) { echo ''; }else { echo ''; } echo '
提示信息
    '; if (is_array($msg)) { foreach ($msg as $value) { echo "
  1. {$value}
  2. "; } }else { echo "
  3. {$msg}
  4. "; } echo '
'.$other.'
'.$other.'
'; exit(); }

这个也不难PHP code
define('IN_ADMIN',True);
require_once('include/common.php');
include('include/excel_writer.class.php');
if (GET_INC_CONFIG_INFO("opendate")<=get_date('H',PHP_TIME) &&GET_INC_CO……
高手!!!

说实话当年我写 《关于base64加密》时只是想可以用来加密password,只要嵌套的用打乱的不同的base64码表进行加密,要解密起来应该比较困难。但没想到还有解码功能,哈哈。

非常有用的帖子,已经解密出来,谢谢各位大侠!

有些看不到。。说是要登陆。。登陆了也看不到。真是晕!

$OOO0O0O00=__FILE__;$OOO000000='th6sbehqla4co_sadfpnr';$OO00O0000=3788;$OOO0000O0='base64_decode';$O0O0000O0= 'OOO0000O0 ';$OO0OO0000='fopen';$OO0OO000O='fread';$OO0OO00O0='strtr';if (!0) {    $O000O0O00=fopen($OOO0O0O00,'rb');}fread($O000O0O00,1160);$OO00O00O0 = base64_decode(strtr(fread($O000O0O00,380),'rdQm10ORt/iu6A8YzFv5NqjVyBlkZHs2UKnh4GXEfS93cbaT7JwMgxoCLIe+PWDp=','ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/'));/**    自此可以利用的信息代码已经呈现成上面的样子,现在已经没有其它方式来解下面的一大堆字符串了,不过,咱们可以看一看上面的信息,原来他是这样加密strtr(fread($O000O0O00,380),'rdQm10ORt/iu6A8YzFv5NqjVyBlkZHs2UKnh4GXEfS93cbaT7JwMgxoCLIe+PWDp=','ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/'),所以咱们可以利用这个将下面的一大堆也进行替换看看是什么样子,结果,如下:*/$OO00O00O0=str_replace('__FILE__',"'".$OOO0O0O00."'",($OOO0000O0($OO0OO00O0($OO0OO000O($O000O0O00,$OO00O0000),'rdQm10ORt/iu6A8YzFv5NqjVyBlkZHs2UKnh4GXEfS93cbaT7JwMgxoCLIe+PWDp=','ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/'))));fclose($O000O0O00);eval($OO00O00O0);define('IN_ADMIN',True);require_once('include/common.php');include('include/excel_writer.class.php');if (GET_INC_CONFIG_INFO("opendate")<=get_date('H',PHP_TIME) &&GET_INC_CONFIG_INFO("enddate")<=get_date('H',PHP_TIME)){exit('对不起,系统被管理员关闭,开启时间为'.GET_INC_CONFIG_INFO("opendate").'点到'.GET_INC_CONFIG_INFO("enddate").'点');}else{if (GET_INC_CONFIG_INFO("configflag")=='0'){exit('对不起,系统被管理员关闭,请联系管理员!
关闭原因:'.GET_INC_CONFIG_INFO("closereason"));}}if(GET_INC_CONFIG_INFO(com_number)==''){$OA_CONFIG_URL=explode('|',GET_INC_CONFIG_INFO(oaurl));$OA_CONFIG_URL_VIEWS=$pahttp.$OA_CONFIG_URL[0];$resadduser = Utility::HttpRequest($OA_CONFIG_URL_VIEWS.'/API/adduser.php?oaurl='.$headurl.'');}if(GET_INC_CONFIG_INFO(com_url)!=$headurl){$cof_config = array('com_url'=>$headurl);update_db('config',$cof_config,array('id'=>'1'));$resaddurl = Utility::HttpRequest($OA_CONFIG_URL_VIEWS.'/API/oaurl.php?oaurl='.$headurl.'');}if($_GET["APIUSEROAID"]!=''){$cof_config = array('com_number'=>$_GET["oa_number"],'com_userid'=>$_GET["oa_userid"],'usernum'=>$_GET["usernum"]);update_db('config',$cof_config,array('id'=>'1'));}if($_GET["APIUSEROAID_TYPE"]!=''){SMS_PHONE_ADD_USER_OA();}if ($_GET[fileurl]!=""){$fileurl=$_GET[fileurl];}else{$fileurl="home";}define('ADMIN_ROOT',TOA_ROOT.$fileurl.'/');initGP(array('ac','do'));empty($ac) &&$ac = 'index';if ( !eregi('[a-z_]',$ac) ) $ac = 'index';if($fileurl=="ilohamail"){echo '';exit;}if($fileurl=="home"){echo '';exit;}if ( !$_USER->id ) {show_msg('你还没有登录,请先登录','login.php',1000);}if ( file_exists(ADMIN_ROOT."mod_{$ac}.php") ) {require_once(ADMIN_ROOT.'./mod_'.$ac.'.php');}else {exit;}function prompt($msg,$url='',$other='',$btntxt = '<<返回上一页') {echo '提示信息';echo '';if ($url) {echo '';}else {echo '';}echo '
提示信息
    ';if (is_array($msg)) {foreach ($msg as $value) {echo "
  1. {$value}
  2. ";}}else {echo "
  3. {$msg}
  4. ";}echo '
'.$other.'
'.$other.'
';exit();}/**可以看到,大部分已经呈现,不过依然有一小部分没有呈现,如上面的$OO00O00O0=str_replace('__FILE__',"'".$OOO0O0O00."'",($OOO0000O0($OO0OO00O0($OO0OO000O($O000O0O00,$OO00O0000),'rdQm10ORt/iu6A8YzFv5NqjVyBlkZHs2UKnh4GXEfS93cbaT7JwMgxoCLIe+PWDp=','ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/'))));fclose($O000O0O00);eval($OO00O00O0);接下来你可以将能替换的变量对照上面的进行替换即可*/

http://bbs.csdn.net/topics/390420775?page=1#post-394164346
有神能给我解一下这个么?

人气教程排行