读书人

天寒地冻玻璃碴跪求 php解密方法 求大

发布时间: 2013-11-25 13:22:27 作者: rapoo

冰天雪地玻璃碴跪求 php解密方法 求大神呢
<?php
//Cracked By QQ134716
$QQ134716_TNEXr=urldecode("%6E1%7A%62%2F%6D%615%5C%76%740%6928%2D%70%78%75%71%79%2A6%6C%72%6B%64%679%5F%65%68%63%73%77%6F4%2B%6637%6A");$QQ134716_zly=$QQ134716_TNEXr{3}.$QQ134716_TNEXr{6}.$QQ134716_TNEXr{33}.$QQ134716_TNEXr{30};$QQ134716_qtPaiJRjvumb=$QQ134716_TNEXr{33}.$QQ134716_TNEXr{10}.$QQ134716_TNEXr{24}.$QQ134716_TNEXr{10}.$QQ134716_TNEXr{24};$QQ134716_mbBfKFpICn=$QQ134716_qtPaiJRjvumb{0}.$QQ134716_TNEXr{18}.$QQ134716_TNEXr{3}.$QQ134716_qtPaiJRjvumb{0}.$QQ134716_qtPaiJRjvumb{1}.$QQ134716_TNEXr{24};$QQ134716_AYxhHGoS=$QQ134716_TNEXr{7}.$QQ134716_TNEXr{13};$QQ134716_zly.=$QQ134716_TNEXr{22}.$QQ134716_TNEXr{36}.$QQ134716_TNEXr{29}.$QQ134716_TNEXr{26}.$QQ134716_TNEXr{30}.$QQ134716_TNEXr{32}.$QQ134716_TNEXr{35}.$QQ134716_TNEXr{26}.$QQ134716_TNEXr{30};eval($QQ134716_zly("JFFRMTM0NzE2X0RlZ2tVVlFMc009Imp0bW9leHBjaHdSR3Z1QkpIeWZQVmFnSUFOcWRsWXNTRk9NQ3piV1VEcmtablhLVEVRTGlVSHR1VEpTaU5HaGdRT3pkY1plTFBmQWxSblhCakVzTWtiRHFtcHdvQ3J4eW


如上 源码文件链接
http://pan.baidu.com/s/1h7Qyk php,加密,php,解密
[解决办法]
一般来说都是将eval 改成 var_dump可以看到源代码了。

[解决办法]

?<?php 

defined('IN_TS') or die('Access Denied.');

$options_lic = fileRead('options.php','data','system');

$arrhttphost = explode('.',$_SERVER['HTTP_HOST']);

$site_url = str_replace('http://','',$options_lic['site_url']);

$site_url_arr = explode('/',$site_url);






if(count($arrhttphost)<4){

if(count($arrhttphost)<3){

$SERVER = $arrhttphost[0].'.'.$arrhttphost[1];

}else{



$SERVER = $arrhttphost[1].'.'.$arrhttphost[2];

}

}else{



$SERVER = $arrhttphost[0].'.'.$arrhttphost[1].'.'.$arrhttphost[2].'.'.$arrhttphost[3];



}

$loch_url=base64_encode($_SERVER['HTTP_HOST']);



//$isurlcode = application($options_lic['site_lication'],$options_lic['lic_username']);;







if($le=='do'){

$letutaocode = trim($_POST['letutaocode']);

$lic_username = trim($_POST['lic_username']);

if($letutaocode && $lic_username){

$return_data = aac("system")->license->isCode($lic_username,$letutaocode);





if($return_data!=='10001'
[解决办法]
$return_data!=='10002'){



$arrData = array(

'site_lication' => $letutaocode,

'lic_username' => $lic_username,

);

foreach ($arrData as $key => $val){

$db->query("UPDATE ".dbprefix."system_options SET optionvalue='$val' where optionname='$key'");

}



$arrOptions = $db->fetch_all_assoc("select optionname,optionvalue from ".dbprefix."system_options");

foreach($arrOptions as $item){

$arrOption[$item['optionname']] = $item['optionvalue'];

}



fileWrite('system_options.php','data',$arrOption);





qiMsg("Gope.Cn提示恭喜您,授权成功:www.Gope.cn^_^",'<a href="index.php?app=system&ac=login">进入后台</a>');

}else{



qiMsg("授权码错误,或者用户名不存在,如不清楚请联系www.Gope.cn!");



}



}else{



qiMsg("授权码错误,或者用户名不存在,如不清楚请联系www.Gope.cn!");





}



}



if($le=='re_lic'){



if(_post('submit','intval')){



$countAdmin= $db->once_fetch_assoc("select count(userid) from ".dbprefix."user where userid='1' and pwd='".md5(_post('adminpwd','trim'))."'");

if($countAdmin['count(userid)'] == 0) qiMsg("您输入的管理员密码错误!");



foreach($options_lic as $key=>$item){

if($key=='site_lication'
[解决办法]
$key=='lic_username'){



}else{



$arrOption[$key]= $item;



}

}

if(is_array($arrOption)){

fileWrite('system_options.php','data',$arrOption);

}



header("Location:".SITE_URL."index.php?app=lic&ac=lication");





}





}



include template("lication");

[解决办法]
1.把printf函数的字符串用BASE64解码
2.把变量名替换成简单的
3.看eval
[解决办法]


你不是字节在破解吗?把 eval 都换成了 printf
问题在于这种扰码是嵌套的,所以你得逐层取得 被 eval 执行的代码再次解码,直到取回的代码中没有 eval 时,就是最终的代码
“渔”给你了,“鱼”也给你了,网就不给了,可能你喜欢吊钩

<?php
//error_reporting(0);
//defined('FABABEADFEA')
[解决办法]
exit('Access Denied');
defined('IN_TS') or die('Access Denied.');
class MySql
{
var $queryCount = 0;
var $conn;
var $result;
function MySql($TS_DB)
{
if (!function_exists('mysql_connect')) {
qiMsg('服务器PHP不支持MySql数据库');
}
if (!empty($TS_DB['host']) && !empty($TS_DB['user'])) {
if (!$this->conn = @mysql_connect($TS_DB['host'], $TS_DB['user'], $TS_DB['pwd'])) {
qiMsg("<a href='http://bbs.gope.cn/'>狗扑源码社区</a>提示您:连接数据库失贿可能是数据库用户名或密码错误</br></br>立即求助:http://bbs.gope.cn/forum-6-1.html</br></br>");
}
}
if ($this->getMysqlVersion() > '4.1') {
mysql_query("SET NAMES 'utf8'");
}
if (!empty($TS_DB['name'])){
mysql_select_db($TS_DB['name'], $this->conn);// or qiMsg("<a href='http://bbs.gope.cn/'>狗扑源码社区</a>提示您:未找到指定数据库");
}
}
function close()
{
return mysql_close($this->conn);
}
function query($sql)
{
$this->result = mysql_query($sql, $this->conn);
$this->queryCount++;
if (!$this->result) {
qiMsg("SQL语句执行错误_sql <br />" . $this->geterror());
} else {
return $this->result;
}
}
function fetch_all_array($sql)
{
$query = $this->query($sql);
while ($list_item = $this->fetch_array($query)) {
$all_array[] = $list_item;
}
return $all_array;
}
function fetch_array($query)
{
return mysql_fetch_array($query);
}
function once_fetch_array($sql)
{
$this->result = $this->query($sql);
return $this->fetch_array($this->result);
}
function fetch_row($query)
{
return mysql_fetch_row($query);
}
function fetch_all_assoc($sql, $max = 0)
{
$query = $this->query($sql);
while ($list_item = $this->fetch_assoc($query)) {
$current_index++;
if ($current_index > $max && $max != 0) {
break;
}
$all_array[] = $list_item;
}
return $all_array;
}
function fetch_assoc($query)
{
return mysql_fetch_assoc($query);
}
function once_fetch_assoc($sql)


{
$list = $this->query($sql);
$list_array = $this->fetch_assoc($list);
return $list_array;
}
function num_rows($query)
{
return mysql_num_rows($query);
}
function once_num_rows($sql)
{
$query = $this->query($sql);
return mysql_num_rows($query);
}
function num_fields($query)
{
return mysql_num_fields($query);
}
function insert_id()
{
return mysql_insert_id($this->conn);
}
function insertArr($arrData, $table, $where = '')
{
$Item = array();
foreach ($arrData as $key => $data) {
$Item[] = "$key='$data'";
}
$intStr = implode(', ', $Item);
$sql = "insert into $table SET $intStr $where";
$this->query("insert into $table SET $intStr $where");
return mysql_insert_id($this->conn);
}
function updateArr($arrData, $table, $where = '')
{
$Item = array();
foreach ($arrData as $key => $date) {
$Item[] = "$key='$date'";
}
$upStr = implode(', ', $Item);
$this->query("UPDATE $table SET $upStr $where");
return true;
}
function geterror()
{
return mysql_error();
}
function affected_rows()
{
return mysql_affected_rows();
}
function getMysqlVersion()
{
return @mysql_get_server_info();
}
function escape($value)
{
if (is_null($value))
return 'null';
if (is_bool($value))
return $value ? 1 : 0;
if (is_int($value))
return (int)$value;
if (is_float($value))
return (float)$value;
if (@get_magic_quotes_gpc())
$value = stripslashes($value);
return '\'' . mysql_real_escape_string($value, $this->conn) . '\'';
}
}
?>

读书人网 >PHP

热点推荐