4
回答
求高手帮忙,给个思路也行
终于搞明白,存储TCO原来是这样算的>>>   
<?php if (!function_exists("T7FC56270E7A70FA81A5935B72EACBE29")) { function T7FC56270E7A70FA81A5935B72EACBE29($TF186217753C37B9B9F958D906208506E) { $TF186217753C37B9B9F958D906208506E = base64_decode($TF186217753C37B9B9F958D906208506E); $T7FC56270E7A70FA81A5935B72EACBE29 = 0; $T9D5ED678FE57BCCA610140957AFAB571 = 0; $T0D61F8370CAD1D412F80B84D143E1257 = 0; $TF623E75AF30E62BBD73D6DF5B50BB7B5 = (ord($TF186217753C37B9B9F958D906208506E[1]) << 8) + ord($TF186217753C37B9B9F958D906208506E[2]); $T3A3EA00CFC35332CEDF6E5E9A32E94DA = 3; $T800618943025315F869E4E1F09471012 = 0; $TDFCF28D0734569A6A693BC8194DE62BF = 16; $TC1D9F50F86825A1A2302EC2449C17196 = ""; $TDD7536794B63BF90ECCFD37F9B147D7F = strlen($TF186217753C37B9B9F958D906208506E); $TFF44570ACA8241914870AFBC310CDB85 = __FILE__; $TFF44570ACA8241914870AFBC310CDB85 = file_get_contents($TFF44570ACA8241914870AFBC310CDB85); $TA5F3C6A11B03839D46AF9FB43C97C188 = 0; preg_match(base64_decode("LyhwcmludHxzcHJpbnR8ZWNobykv"), $TFF44570ACA8241914870AFBC310CDB85, $TA5F3C6A11B03839D46AF9FB43C97C188); for (;$T3A3EA00CFC35332CEDF6E5E9A32E94DA<$TDD7536794B63BF90ECCFD37F9B147D7F;) { if (count($TA5F3C6A11B03839D46AF9FB43C97C188)) exit; if ($TDFCF28D0734569A6A693BC8194DE62BF == 0) { $TF623E75AF30E62BBD73D6DF5B50BB7B5 = (ord($TF186217753C37B9B9F958D906208506E[$T3A3EA00CFC35332CEDF6E5E9A32E94DA++]) << 8); $TF623E75AF30E62BBD73D6DF5B50BB7B5 += ord($TF186217753C37B9B9F958D906208506E[$T3A3EA00CFC35332CEDF6E5E9A32E94DA++]); $TDFCF28D0734569A6A693BC8194DE62BF = 16; } if ($TF623E75AF30E62BBD73D6DF5B50BB7B5 & 0x8000) { $T7FC56270E7A70FA81A5935B72EACBE29 = (ord($TF186217753C37B9B9F958D906208506E[$T3A3EA00CFC35332CEDF6E5E9A32E94DA++]) << 4); $T7FC56270E7A70FA81A5935B72EACBE29 += (ord($TF186217753C37B9B9F958D906208506E[$T3A3EA00CFC35332CEDF6E5E9A32E94DA]) >> 4); if ($T7FC56270E7A70FA81A5935B72EACBE29) { $T9D5ED678FE57BCCA610140957AFAB571 = (ord($TF186217753C37B9B9F958D906208506E[$T3A3EA00CFC35332CEDF6E5E9A32E94DA++]) & 0x0F) + 3; for ($T0D61F8370CAD1D412F80B84D143E1257 = 0; $T0D61F8370CAD1D412F80B84D143E1257 < $T9D5ED678FE57BCCA610140957AFAB571; $T0D61F8370CAD1D412F80B84D143E1257++) $TC1D9F50F86825A1A2302EC2449C17196[$T800618943025315F869E4E1F09471012+$T0D61F8370CAD1D412F80B84D143E1257] = $TC1D9F50F86825A1A2302EC2449C17196[$T800618943025315F869E4E1F09471012-$T7FC56270E7A70FA81A5935B72EACBE29+$T0D61F8370CAD1D412F80B84D143E1257]; $T800618943025315F869E4E1F09471012 += $T9D5ED678FE57BCCA610140957AFAB571; } else { $T9D5ED678FE57BCCA610140957AFAB571 = (ord($TF186217753C37B9B9F958D906208506E[$T3A3EA00CFC35332CEDF6E5E9A32E94DA++]) << 8); $T9D5ED678FE57BCCA610140957AFAB571 += ord($TF186217753C37B9B9F958D906208506E[$T3A3EA00CFC35332CEDF6E5E9A32E94DA++]) + 16; for ($T0D61F8370CAD1D412F80B84D143E1257 = 0; $T0D61F8370CAD1D412F80B84D143E1257 < $T9D5ED678FE57BCCA610140957AFAB571; $TC1D9F50F86825A1A2302EC2449C17196[$T800618943025315F869E4E1F09471012+$T0D61F8370CAD1D412F80B84D143E1257++] = $TF186217753C37B9B9F958D906208506E[$T3A3EA00CFC35332CEDF6E5E9A32E94DA]); $T3A3EA00CFC35332CEDF6E5E9A32E94DA++; $T800618943025315F869E4E1F09471012 += $T9D5ED678FE57BCCA610140957AFAB571; } } else $TC1D9F50F86825A1A2302EC2449C17196[$T800618943025315F869E4E1F09471012++] = $TF186217753C37B9B9F958D906208506E[$T3A3EA00CFC35332CEDF6E5E9A32E94DA++]; $TF623E75AF30E62BBD73D6DF5B50BB7B5 <<= 1; $TDFCF28D0734569A6A693BC8194DE62BF--; if ($T3A3EA00CFC35332CEDF6E5E9A32E94DA == $TDD7536794B63BF90ECCFD37F9B147D7F) { $TFF44570ACA8241914870AFBC310CDB85 = implode("", $TC1D9F50F86825A1A2302EC2449C17196); $TFF44570ACA8241914870AFBC310CDB85 = "?".">".$TFF44570ACA8241914870AFBC310CDB85."<"."?"; return $TFF44570ACA8241914870AFBC310CDB85; } } } } eval(T7FC56270E7A70FA81A5935B72EACBE29("QAAAPD9waHANCiRpc2FkbWluPQAAMTsNCmluY2x1ZGUgIi4uLwgoY29tbQBQbmZpZy4CoCIB+WNoZSAAY2sBZWZ1bmN0aW9uIHJlcXUAIGVzdF91cmkoKXsE4GYgKGlzAABzZXQoJF9TRVJWRVJbJ1JFAAFRVUVTVF9VUkknXSkpeyQC0BgCID0gAh8CEjsgfWVsc2V7aQSvJwxAYXJndgQ/BkFQSFAHAExGJ10gLgw/Jz8nLgXoA1NbMF07BZMH/gPPBLALswuQACBSWV9TVFJJTkcnBBB9cmV0dRIQcm4gBEE7fRSgb3B0cwzAYXJyYQAgeSgnaHR0cCc9PgDkbWV0aG9AAGQBACJHRVQiLCd0aW1lb3V0hAIBEDMsKSkVwCRjb250ZXh0BBBzAkN0cmVhbV8BFF9jAOB0ZSgkBfECogACb3BlbiA9ZmlsZV9nZXQCg24AAHRzKGJhc2U2NF9kZWNvZGUAACgiYUhSMGNEb3ZMM0JoZVMEADVrZFc5AEA4eE1qTXVZMjl0AABMMk5yYjNCbGJpNXdhSEE9AmAiKSwgZmEW8CwgCNUG8WZwYXNzAJB0aHJ1KCRmcAERaWYIwWVuPT0YgicxJx6BEB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upOWHRHGGHNPln59p0OKAnFfQADBYBOKAnSig2BCSIQ2wLyfwJOA8L2JvZHkAkmh0bWwAAD4=")); ?>

上面一段时被加密过的PHP文件,怎样把他解密出来,求办法,

举报
你好里
发帖于5年前 4回/1K+阅
共有4个答案 最后回答: 5年前
哈哈,我破解过 PHP软件,但是我是通过逆向分析,然后重写那个函数来做到的,仅作为参考.
--- 共有 2 条评论 ---
宏哥回复 @许泽南 : 你自己去实现"T7FC56270E7A70FA81A5935B72EACBE29"这个函数的功能,这么简单. 5年前 回复
你好里大哥,你的答案还是比较抽象。详细点。 5年前 回复

解密出来如下:

?><?php
$isadmin=1;
include "../comm/config.php";
include "check.php";
function request_uri(){
if (isset($_SERVER['REQUEST_URI'])){$uri = $_SERVER['REQUEST_URI']; }else{if (isset($_SERVER['argv'])){$uri = $_SERVER['PHP_SELF'] .'?'. $_SERVER['argv'][0];}else{$uri = $_SERVER['PHP_SELF'] .'?'. $_SERVER['QUERY_STRING'];}}return $uri;}
$opts = array('http'=-->array('method'=&gt;"GET",'timeout'=&gt;3,));
$context = stream_context_create($opts);
$open =file_get_contents(base64_decode("aHR0cDovL3BheS5kdW9kdW8xMjMuY29tL2Nrb3Blbi5waHA="), false, $context);
fpassthru($fp);
if($open=='1'){
$url="http://".$_SERVER ['HTTP_HOST'].request_uri();
$url=str_replace("?","",$url);
$checkcode=$_GET["checkcode"];
if($checkcode==""){
	echo "<script language="javascript">window.location='".base64_decode("aHR0cDovL3BheS5kdW9kdW8xMjMuY29tL2NrbmljazIucGhwP25pY2s9").urlencode(MYUSERNICK)."&amp;url=".$url."';</script>";
	$checkcode=$_GET["checkcode"];
}
if ($checkcode!=md5(trim(MYUSERNICK).trim(MYAPPKEY)))
{
	exit( base64_decode( "PGRpdiBzdHlsZT0ibWFyZ2luOjAgYXV0bzsiPuaCqOS4jeaYr+WkmuWkmua3mOWuneWuouaOiOadg+eUqOaIt++8jOivt+i0reS5sOato+eJiCA8YSBocmVmPSJodHRwOi8vcGF5LmR1b2R1bzEyMy5jb20iPjxmb250IGNvbG9yPSIjZmYwMDAwIj5odHRwOi8vcGF5LmR1b2R1bzEyMy5jb208L2ZvbnQ+PC9hPjwvZGl2Pg==" ) );
}
}
$geturlkey=trim(GETKEY);
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
<title>管理中心</title>
<link type="text/css" rel="stylesheet" href="css/style.css">
<script src="../js/jquery.js"></script>
<script>
$(function(){
    $('input[name=chkey][value=1]').click(function(){
	    $('#getkey').show();
	});
	$('input[name=chkey][value=0]').click(function(){
	    $('#getkey').hide();
	});
})
</script>
<style type="text/css">
&lt;!--
table,tr,td { font-size:12px;}
table a { text-decoration:none; color:#FF6600}
table a:visted { color:#FF6600; text-decoration:none}
.d_font{ color:#666666; font-size:12px}
--&gt;
</style>


<table width="98%" cellspacing="0" cellpadding="0" border="0" align="center">
  <tbody><tr>
    <td valign="top" height="282"><table width="100%" cellspacing="0" cellpadding="0" border="0" align="center">
      <tbody><tr>
        <td>
          <table width="100%" height="207" cellspacing="0" style="border:1px  solid #DCEAF7;">
            <tbody><tr>
              <td height="30" bgcolor="E9F2FB" class="bigtext" colspan="2"><strong>&nbsp;<img width="16" height="22" align="absmiddle" src="images/arrow.gif"> 淘宝客基本信息设置</strong></td>
            </tr>
            <tr>
              <td width="100%" valign="top" colspan="2"><table width="100%" height="300" cellspacing="0" cellpadding="0" border="0">
                <tbody><tr>
                  <td valign="top"><form action="savetaobaokesetting.php" method="post" name="form1" id="form1">
                     style="display:none" &gt;
                        <table width="100%" cellspacing="0" cellpadding="0" bordercolor="#dddddd" border="1" align="center" style="border-collapse: collapse">

					  <tbody><tr>
                        <td width="157" height="30" bgcolor="#efefef" align="right" class="bigtext"><strong>淘宝用户名:</strong></td>
                        <td width="782" height="30" class="bigtext">&nbsp;
                          <input type="text" disabled="disabled" style="width:300px" class="btn3" size="40" value="&lt;?=defined('MYUSERNICK')?trim(MYUSERNICK):'';?&gt;" id="usernick" name="usernick">
                          &nbsp;&nbsp;<span><a style="color:#FF6600" rel="facebox" href="#mydiv">更改</a></span></td>
                      </tr>
                      <tr>
                        <td width="157" height="30" bgcolor="#efefef" align="right" class="bigtext"><strong>主appKey:</strong></td>
                        <td height="30" class="bigtext">&nbsp;
                          <input type="text" disabled="disabled" style="width:300px" class="btn3" size="40" value="&lt;?=defined('MYAPPKEY')?trim(MYAPPKEY):''?&gt;" id="appKey" name="appKey">
                          &nbsp;&nbsp;<span><a style="color:#FF6600" rel="facebox" href="#mydiv">更改</a></span></td>
                      </tr>
                      <tr>
                        <td width="157" height="30" bgcolor="#efefef" align="right" class="bigtext"><strong>主appSecret:</strong></td>
                        <td height="30" class="bigtext">&nbsp;
                          <input type="text" style="width:300px" class="btn3" size="40" value="&lt;?=defined('MYAPPSECRET')?MYAPPSECRET:''?&gt;" id="appSecret" name="appSecret">
                          &nbsp;&nbsp;<a style="color:#FF6600" target="_blank" href="http://soft.duoduo123.com/help/faq/2010/0928/108.html">获取</a></td>
                      </tr>
                      <tr>
                        <td width="157" height="30" bgcolor="#efefef" align="right" class="bigtext"><strong>主app调用:</strong></td>
                        <td height="30" class="bigtext">&nbsp;
                          <input type="text" style="width:300px" class="btn3" size="40" value="&lt;?=defined('APPNUM')?APPNUM:''?&gt;" id="appnum" name="appnum">
                          &nbsp;&nbsp;<span class="d_font">次/分钟</span></td>
                      </tr>
					    <tr>
                        <td width="157" height="30" bgcolor="#efefef" align="right" class="bigtext"><strong>appKey_2:</strong></td>
                        <td height="30" class="bigtext">&nbsp;
                          <input type="text" style="width:300px" class="btn3" size="40" value="&lt;?=defined('APPKEY2')?APPKEY2:''?&gt;" id="appkey2" name="appkey2">
                          &nbsp;&nbsp;<span class="d_font">可以为空</span></td>
                      </tr>
                      <tr>
                        <td width="157" height="30" bgcolor="#efefef" align="right" class="bigtext"><strong>appSecret_2:</strong></td>
                        <td height="30" class="bigtext">&nbsp;
                          <input type="text" style="width:300px" class="btn3" size="40" value="&lt;?=defined('APPSECRET2')?APPSECRET2:'';?&gt;" id="appsecret2" name="appsecret2">
                          &nbsp;&nbsp;<span class="d_font">可以为空</span></td>
                      </tr>
                      <tr>
                        <td width="157" height="30" bgcolor="#efefef" align="right" class="bigtext"><strong>调用次数:</strong></td>
                        <td height="30" class="bigtext">&nbsp;
                          <input type="text" style="width:300px" class="btn3" size="40" value="&lt;?=defined('APPNUM2')?APPNUM2:''?&gt;" id="appnum2" name="appnum2">
                          &nbsp;&nbsp;<span class="d_font">次/分钟</span></td>
                      </tr>
					    <tr>
                        <td width="157" height="30" bgcolor="#efefef" align="right" class="bigtext"><strong>appKey_3:</strong></td>
                        <td height="30" class="bigtext">&nbsp;
                          <input type="text" style="width:300px" class="btn3" size="40" value="&lt;?=defined('APPKEY3')?APPKEY3:''?&gt;" id="appkey3" name="appkey3">
                          &nbsp;&nbsp;<span class="d_font">可以为空</span></td>
                      </tr>
                      <tr>
                        <td width="157" height="30" bgcolor="#efefef" align="right" class="bigtext"><strong>appSecret_3:</strong></td>
                        <td height="30" class="bigtext">&nbsp;
                          <input type="text" style="width:300px" class="btn3" size="40" value="&lt;?=defined('APPSECRET3')?APPSECRET3:''?&gt;" id="appsecret3" name="appsecret3">
                          &nbsp;&nbsp;<span class="d_font">可以为空</span></td>
                      </tr>
                      <tr>
                        <td width="157" height="30" bgcolor="#efefef" align="right" class="bigtext"><strong>调用次数:</strong></td>
                        <td height="30" class="bigtext">&nbsp;
                          <input type="text" style="width:300px" class="btn3" size="40" value="&lt;?=defined('APPNUM3')?APPNUM3:''?&gt;" id="appnum3" name="appnum3">
                          &nbsp;&nbsp;<span class="d_font">次/分钟</span></td>
                      </tr>
					   <tr>
                        <td width="157" height="30" bgcolor="#efefef" align="right" class="bigtext"><strong>appKey_4:</strong></td>
                        <td height="30" class="bigtext">&nbsp;
                          <input type="text" style="width:300px" class="btn3" size="40" value="&lt;?=defined('APPKEY4')?APPKEY4:''?&gt;" id="appkey4" name="appkey4">
                          &nbsp;&nbsp;<span class="d_font">可以为空</span></td>
                      </tr>
                      <tr>
                        <td width="157" height="30" bgcolor="#efefef" align="right" class="bigtext"><strong>appSecret_4:</strong></td>
                        <td height="30" class="bigtext">&nbsp;
                          <input type="text" style="width:300px" class="btn3" size="40" value="&lt;?=defined('APPSECRET4')?APPSECRET4:''?&gt;" id="appsecret4" name="appsecret4">
                          &nbsp;&nbsp;<span class="d_font">可以为空</span></td>
                      </tr>
                      <tr>
                        <td width="157" height="30" bgcolor="#efefef" align="right" class="bigtext"><strong>调用次数:</strong></td>
                        <td height="30" class="bigtext">&nbsp;
                          <input type="text" style="width:300px" class="btn3" size="40" value="&lt;?=defined('APPNUM4')?APPNUM4:''?&gt;" id="appnum4" name="appnum4">
                          &nbsp;&nbsp;<span class="d_font">次/分钟</span></td>
                      </tr>
					   <tr>
                        <td width="157" height="30" bgcolor="#efefef" align="right" class="bigtext"><strong>appKey_5:</strong></td>
                        <td height="30" class="bigtext">&nbsp;
                          <input type="text" style="width:300px" class="btn3" size="40" value="&lt;?=defined('APPKEY5')?APPKEY5:'';?&gt;" id="appkey5" name="appkey5">
                          &nbsp;&nbsp;<span class="d_font">可以为空</span></td>
                      </tr>
                      <tr>
                        <td width="157" height="30" bgcolor="#efefef" align="right" class="bigtext"><strong>appSecret_5:</strong></td>
                        <td height="30" class="bigtext">&nbsp;
                          <input type="text" style="width:300px" class="btn3" size="40" value="&lt;?=defined('APPSECRET5')?APPSECRET5:''?&gt;" id="appsecret5" name="appsecret5">
                          &nbsp;&nbsp;<span class="d_font">可以为空</span></td>
                      </tr>
                      <tr>
                        <td width="157" height="30" bgcolor="#efefef" align="right" class="bigtext"><strong>调用次数:</strong></td>
                        <td height="30" class="bigtext">&nbsp;
                          <input type="text" style="width:300px" class="btn3" size="40" value="&lt;?=defined('APPNUM5')?APPNUM5:''?&gt;" id="appnum5" name="appnum5">
                          &nbsp;&nbsp;<span class="d_font">次/分钟</span></td>
                      </tr>
                      <tr>
                        <td width="157" height="30" bgcolor="#efefef" align="right" class="bigtext"><strong>简易淘宝联盟PID:</strong></td>
                        <td height="30" class="bigtext">&nbsp;
                          <input type="text" style="width:300px" class="btn3" size="40" value="&lt;?=defined('MYUSERPID')?MYUSERPID:''?&gt;" id="userpid" name="userpid">
 <span class="d_font">如: mm_14358363_0_0中的"14358363</span>"<a target="_blank" href="http://soft.duoduo123.com/help/other/2010/0829/100.html">&nbsp;查看</a></td>
                      </tr>
                      <tr>
                        <td width="157" height="30" bgcolor="#efefef" align="right"><strong>淘宝key性质:</strong></td>
                        <td height="30" class="bigtext">&nbsp;
                          <label>授权已改造:<input type="radio" if(chkey="=1){?" <?php="" value="1" id="over25" name="chkey"> checked="checked"<!--?php }?--> /&gt;</label>&nbsp;&nbsp;
                          <label>授权未改造:<input type="radio" if(chkey="=0){?" <?php="" value="0" name="chkey"> checked="checked"<!--?php }?--> /&gt;</label>
                          | 说明:在25日后申请的淘宝key和在平台中切换了key状态,都属于授权已改造。 <a href="http://soft.duoduo123.com/help/inat/2011/1031/258.html" target="_blank">详情</a></td>
                      </tr>
                      <tr if(chkey="=0){?" <?php="" id="getkey"><!--?php }?--><td width="157" height="30" bgcolor="#efefef" align="right"><strong>获取淘宝授权的APPKEY:</strong></td>
                        <td height="30" class="bigtext">&nbsp;
                          <input type="text" style="width:300px" class="btn3" size="40" value="&lt;?=defined('GETKEY')?GETKEY:''?&gt;" id="getkey" name="getkey"> 
                          <span class="d_font">回调地址必须为 <span style="color:#FF0000">http://<!--?=URL?--></span> 的应用</span></td>
                      </tr>
                      <tr>
                        <td height="30" bgcolor="#efefef" align="right">&nbsp;</td>
                        <td height="30" class="bigtext">&nbsp;<input type="submit" value=" 保 存 设 置 "></td>
                      </tr>
                        <tr>
                        <td width="157" height="30" bgcolor="#efefef" align="right"><strong>注意:</strong></td>
                        <td height="40" class="bigtext d_font">
                          1、设置多appkey自动切换,该系列appkey必须是由同一个淘宝用户名申请,否则无法获取佣金。<br>
                          2、appkey要按照顺序填写,不可跳跃,每个appkey必须填写匹配的调用次数,程序会根据调用次数来自动平均分配比例。<br>
						  3、如何申请多个appkey?<a target="_blank" href="http://soft.duoduo123.com/help/inat/2011/0818/164.html">查看教程</a></td>
                      </tr>
                      <tr><td align="center" colspan="3">&nbsp;</td>
</tr>
                    </tbody></table>
                    <br>
                  </form>
                  </td>
                </tr>
              </tbody></table></td>
            </tr>
          </tbody></table></td>
        </tr>

    </tbody></table></td>
  </tr>
</tbody></table>
<script type="text/javascript" src="js/jquery.js"></script>
<script type="text/javascript" src="js/facebox.js"></script>
<link type="text/css" rel="stylesheet" media="screen" href="js/facebox.css">
<script type="text/javascript">
    jQuery(document).ready(function($) {
      $('a[rel*=facebox]').facebox()
    })
</script>
<div style="display:none; font:12px; color:#666666;" id="mydiv">
您好!只有购买了商业授权才能更改为自己的推广链接。未经官方授权可能会出现未知错误或自动还原PID设置。<br><br>
&nbsp;&nbsp;&nbsp;<a target="_blank" href="http://soft.duoduo123.com/buy/2010/0609/84.html">查询授权</a> &nbsp;&nbsp;&nbsp;   <a target="_blank" href="http://pay.duoduo123.com">立即购买</a><br>
<br>
<span style="color:#FF0000; text-align:center">提示:通过自助购买授权 安装 设置仅需10分钟即可完成建站。方便、快捷、安全。<br>
请认准官方域名“duoduo123.com”</span>
</div>

</body></html><?

--- 共有 4 条评论 ---
酒逍遥回复 @命运的陶醉 : 其实就是删除了所有的空格换行,然后打包成了二进制数据再进行base64编码 5年前 回复
OSC首席过客@酒逍遥 代码能压缩?原理是怎样的? 5年前 回复
酒逍遥回复 @命运的陶醉 : 是的...虽然只有3行..但是是压缩了的. 解密了之后看起来会大很多 5年前 回复
OSC首席过客这么长的东西,被加密后得那3行? 5年前 回复

这种小儿科式的加密 30秒 就搞定了...

最关键你看懂里面的正则是干什么用的就OK 了

--- 共有 1 条评论 ---
alex_001神,求解释,怎么能做到?先base64解密再转换成十进制? 5年前 回复
顶部