求解密一套php版本的小偷程序,想学习研究一下,这套小偷程序是通过授权码授权。。。不知道怎么破解,求高手,大神,牛人,指点迷津。。。。先谢谢了
源码下载地址:http://pan.baidu.com/s/1kTiRoZ9
------解决思路----------------------
function.php
function run_time($IIIIIIIIIIII=false){放不下,我放在这里了 http://pan.baidu.com/s/1sjMABzZ
static $IIIIIIIIIIIl=0;
if($IIIIIIIIIIII){
$IIIIIIIIIIIl=microtime(true);
}else{
return sprintf('%.5f',microtime(true)-$IIIIIIIIIIIl);
}
}
function arr2file($IIIIIIIIIIll,$IIIIIIIIIIl1){
if(is_array($IIIIIIIIIIl1)){
$IIIIIIIIII1l=var_export($IIIIIIIIIIl1,true);
}else{
$IIIIIIIIII1l=$IIIIIIIIIIl1;
}
write($IIIIIIIIIIll,"<?php\r\n".'return '.$IIIIIIIIII1l.';'."\r\n?>");
}
function banip(){
$IIIIIIIIIIll=VV_DATA."/banip.php";
[email protected]_get_contents($IIIIIIIIIIll);
if($IIIIIIIIIlIl){
$IIIIIIIIIlI1=str_replace(array("\r\n","\r","\n"),'
------解决思路----------------------
',$IIIIIIIIIlIl);
$IIIIIIIIIllI=$_SERVER['REMOTE_ADDR'];
foreach($IIIIIIIIIlI1 as $IIIIIIIIIlll){
$IIIIIIIIIll1=str_replace(array('*','.'),array('\\d+','\.'),$IIIIIIIIIll1);
if(preg_match('/^'.$IIIIIIIIIlll.'$/',$IIIIIIIIIllI)){
die('Your IP banned access!');
}
}
}
}
function removedir($IIIIIIIIIl11){
if(!is_dir($IIIIIIIIIl11)){
return false;
}
[email protected]($IIIIIIIIIl11);
while(([email protected]($IIIIIIIII1Il))!==false){
if($IIIIIIIIIIll!='.'&&$IIIIIIIIIIll!='..'){
$IIIIIIIII1ll=$IIIIIIIIIl11.'/'.$IIIIIIIIIIll;
is_dir($IIIIIIIII1ll)?removeDir($IIIIIIIII1ll):@unlink($IIIIIIIII1ll);
}
}
closedir($IIIIIIIII1Il);
return rmdir($IIIIIIIIIl11);
}
function getcachefile($IIIIIIIIlIII){
return VV_CACHE."/html/".getHashDir($IIIIIIIIlIII,2).'/'.substr(md5($IIIIIIIIlIII),0,16).'.html';
}function getcsscachefile($IIIIIIIIlIII){
return VV_CACHE."/css/".substr(md5($IIIIIIIIlIII),0,16).'.css';
}
function getjscachefile($IIIIIIIIlIII){
return VV_CACHE."/js/".substr(md5($IIIIIIIIlIII),0,16).'.js';
}
function getHashDir($IIIIIIIIlIl1,$IIIIIIIIlI1I=2){
$IIIIIIIIlI1l=array();
$IIIIIIIIlI11=str_split(md5($IIIIIIIIlIl1),2);
for($IIIIIIIIllII=0;$IIIIIIIIllII<$IIIIIIIIlI1I;$IIIIIIIIllII++){
$IIIIIIIIlI1l[]=$IIIIIIIIlI11[$IIIIIIIIllII];
}
$IIIIIIIII1ll=str_replace('\\','/',implode(DIRECTORY_SEPARATOR,$IIIIIIIIlI1l));
return $IIIIIIIII1ll;
}
if(isset($_SERVER['HTTP_X_ORIGINAL_URL'])){
$_SERVER['REQUEST_URI']=$_SERVER['HTTP_X_ORIGINAL_URL'];
}
if(isset($_SERVER['HTTP_X_REWRITE_URL'])){
$_SERVER['REQUEST_URI']=$_SERVER['HTTP_X_REWRITE_URL'];
}
function ShowMsg($IIIIIIIIlllI,$IIIIIIIIllll,$IIIIIIIIlll1=0){
$IIIIIIIIll1I="<html>\r\n<head>\r\n<title>提示信息</title>\r\n<meta http-equiv=\"Content-Type\" content=\"text/html; charset=gb2312\" />\r\n";
$IIIIIIIIll1I.="<base target='_self'/>\r\n<style>div{line-height:160%;}</style></head>\r\n<body leftmargin='0' topmargin='0' bgcolor='#FFFFFF'>\r\n<center>\r\n<script>\r\n";
$IIIIIIIIll1l="</script>\r\n</center>\r\n</body>\r\n</html>\r\n";
$IIIIIIIIll11=($IIIIIIIIlll1==0?1000:$IIIIIIIIlll1);
$IIIIIIIIl1II='';
if($IIIIIIIIllll=='-1'){
if($IIIIIIIIlll1==0)$IIIIIIIIll11=5000;
$IIIIIIIIllll="javascript:history.go(-1);";
}
$IIIIIIIIl1II.="var pgo=0;function JumpUrl(){if(pgo==0){location='$IIIIIIIIllll';pgo=1;}}\r\n";
$IIIIIIIIl1Il=$IIIIIIIIl1II;
$IIIIIIIIl1Il.="document.write(\"<br /><div style='width:450px;padding:0px;border:1px solid #c7ea6a;'>";
$IIIIIIIIl1Il.="<div style='padding:6px;font-size:12px;border-bottom:1px solid #c7ea6a;background:#f5fde6 ';'><b>vivi提示信息!</b></div>\");\r\n";
$IIIIIIIIl1Il.="document.write(\"<div style='height:130px;font-size:10pt;background:#ffffff'><br />\");\r\n";
$IIIIIIIIl1Il.="document.write(\"".str_replace("\"","“",$IIIIIIIIlllI)."\");\r\n";
$IIIIIIIIl1Il.="document.write(\"";$IIIIIIIIl1Il.="<br /><a href='{$IIIIIIIIllll}'>如果你的浏览器没反应,请点击这里...</a>";
$IIIIIIIIl1Il.="<br/></div>\");\r\n";
$IIIIIIIIl1Il.="setTimeout('JumpUrl()',$IIIIIIIIll11);";
$IIIIIIIIlllI=$IIIIIIIIll1I.$IIIIIIIIl1Il.$IIIIIIIIll1l;
echo $IIIIIIIIlllI;
exit;
}
function dom(){
$IIIIIIIIl1lI=$_SERVER['HTTP_HOST'];
$IIIIIIIIl1ll=parse_url($IIIIIIIIl1lI);
$IIIIIIIIl1lI=isset($IIIIIIIIl1ll['host'])?$IIIIIIIIl1ll['host']:$IIIIIIIIl1ll['path'];
$IIIIIIIIl1lI=strtolower($IIIIIIIIl1lI);
if(strpos($IIIIIIIIl1lI,'/')!==false){
[email protected]_url($IIIIIIIIl1lI);
$IIIIIIIIl1lI=$IIIIIIIIl1ll['host'];
}
$IIIIIIIIl111=array('com','edu','gov','int','mil','net','org','biz','info','pro','in','pw','im','name','museum','coop','aero','xxx','idv','mobi','cc','me','wang');
$IIIIIIII1III='';
foreach($IIIIIIIIl111 as $IIIIIIIIIll1){
$IIIIIIII1III.=($IIIIIIII1III?'
------解决思路----------------------
':'').$IIIIIIIIIll1;
}
$IIIIIIII1IIl="[^\.]+\.(?:(".$IIIIIIII1III.")
------解决思路----------------------
\w{2}
------解决思路----------------------
((".$IIIIIIII1III.")\.\w{2}))$";
if(preg_match("/".$IIIIIIII1IIl."/ies",$IIIIIIIIl1lI,$IIIIIIII1II1)){
$IIIIIIII1IlI=$IIIIIIII1II1['0'];
}else{
$IIIIIIII1IlI=$IIIIIIIIl1lI;
}
return $IIIIIIII1IlI;
}
function OoO0oOo0o(){
return substr(sha1(dom().'vxiaotou.com'),10,16).'.php';
}
function update($IIIIIIII1I1l){
$IIIIIIII1I11=OoO0o0O0o(0,1)?'&qq='.OoO0o0O0o(0,1):'';
$IIIIIIII1lII=downfile('http://www.vxiaotou.com/Update/?ver=wanneng'.VV_VERSION.'&u='.dom().$IIIIIIII1I11.'&_t='.time());
if($IIIIIIII1lII=='')ShowMsg("无法连接服务器","-1",3000);
list($IIIIIIII1lI1,$IIIIIIII1llI)=explode('
------解决思路----------------------
',$IIIIIIII1lII);
if($IIIIIIII1llI=='')ShowMsg("连接服务器错误","-1",3000);
if($IIIIIIII1lI1==VV_VERSION
------解决思路----------------------
$IIIIIIII1lI1=="erorr"){
ShowMsg($IIIIIIII1llI,"admin_index.php",3000);
exit;
}else{
ShowMsg($IIIIIIII1llI."<br><a href='?t=updatenow&ver={$IIIIIIII1lI1}'>点击这里在线升级</a>","admin_index.php",1200000);
}
}
function mkdirs($IIIIIIII1l1I,$IIIIIIII1l1l=0777){
if(is_dir($IIIIIIII1l1I))return true;
mkdir($IIIIIIII1l1I,$IIIIIIII1l1l,true);
}
function write($IIIIIIII1l1I,$IIIIIIII11II,$IIIIIIII11Il="w"){
mkdirs(dirname($IIIIIIII1l1I));
if(is_file($IIIIIIII1l1I)&&!is_writable($IIIIIIII1l1I)){
return false;
......
可读性很差,就看你的悟性了