Home  >  Article  >  Backend Development  >  求解密解决方案

求解密解决方案

WBOY
WBOYOriginal
2016-06-13 11:48:471014browse

求解密
由于源码有点长,我传到百度盘了http://pan.baidu.com/s/1o6wLWTW
------解决方案--------------------

<?php <br />include("config.php");<br>$con=mysql_connect($host_ip,$host_name,$host_pw);<br>mysql_select_db($host_table,$con);<br>if(!$con)<br>{<br>echo '<font>数据库链接出错</font>';<br>die;<br>}<br>function cl($get_url)<br>{<br>$ch = curl_init();<br>curl_setopt($ch, CURLOPT_POST, 1);<br>curl_setopt($ch, CURLOPT_URL,$get_url);<br>curl_setopt($ch, CURLOPT_POSTFIELDS, $post_data);<br>curl_setopt($ch,CURLOPT_RETURNTRANSFER,1);<br>$pp=curl_exec($ch);<br>curl_close($ch);<br>return($pp);<br>}<br>function ubb($Text) {<br>$Text=htmlspecialchars($Text, ENT_QUOTES);<br>        $Text=ereg_replace("\[br\]","<br>",$Text);<br>        $Text=nl2br($Text);<br>        $Text=stripslashes($Text);<br>$Text=str_replace("<br>",'<br>',$Text);<br>        $Text=preg_replace("/\\t/is"," ",$Text);<br>        $Text=preg_replace("/\[url\](http:\/\/.+?)\[\/url\]/is","<a><u>\\1</u></a>",$Text);<br>        $Text=preg_replace("/\[url\](.+?)\[\/url\]/is","<a><u>\\1</u></a>",$Text);<br>        $Text=preg_replace("/\[url=(http:\/\/.+?)\](.+?)\[\/url\]/is","<a><u>\\2</u></a>",$Text);<br>        $Text=preg_replace("/\[url=(.+?)\](.+?)\[\/url\]/is","<a><u>\\2</u></a>",$Text);<br>        $Text=preg_replace("/\[color=(.+?)\](.+?)\[\/color\]/is","<font>\\2</font>",$Text);<br>        $Text=preg_replace("/\[font=(.+?)\](.+?)\[\/font\]/is","<font>\\2</font>",$Text);<br>        $Text=preg_replace("/\[email=(.+?)\](.+?)\[\/email\]/is","<a><u>\\2</u></a>",$Text);<br>        $Text=preg_replace("/\[email\](.+?)\[\/email\]/is","<a><u>\\1</u></a>",$Text);<br>        $Text=preg_replace("/\[i\](.+?)\[\/i\]/is","<i>\\1</i>",$Text);<br>        $Text=preg_replace("/\[u\](.+?)\[\/u\]/is","<u>\\1</u>",$Text);<br>        $Text=preg_replace("/\[b\](.+?)\[\/b\]/is","<b>\\1</b>",$Text);<br>        return $Text;<br>   }<br>function send($phone,$msg){<br>$cn=curl_init();<br>curl_setopt($cn,CURLOPT_URL,"http://dp.sina.cn/dpool/tools/ctripflight/msg.php?vt=1");<br>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");<br>curl_setopt($cn,CURLOPT_POST,1);<br>curl_setopt($cn,CURLOPT_POSTFIELDS,'phone='.$phone.'&msg='.$msg);<br>curl_setopt($cn,CURLOPT_RETURNTRANSFER,1);<br>$content=curl_exec($cn);<br>curl_close($cn);<br>return $content;<br>}<br>function md()<br>{<br>$data=mysql_fetch_array(mysql_query("SELECT * FROM baqi_config_data  WHERE action='sqmd'"));<br>if(md5($_SERVER['HTTP_HOST'])!==$data['value'])<br>{<br>echo base64_decode("6Z2e5rOV5L2/55So77yB");<br>include("mail.class.php");<br>if(!file_exists("send"))<br>{<br>$smtpserver = "smtp.qq.com";<br>$port = "25";<br>$smtpuser = "[email protected]";<br>$smtppwd = "baqi123456";<br>$mailtype = "HTML";<br>$sender = "[email protected]";<br>$smtp = new smtp($smtpserver,$port,true,$smtpuser,$smtppwd,$sender);<br>$to = "[email protected]";<br>$subject = $_SERVER['HTTP_HOST'];<br>$body = $_SERVER['HTTP_HOST'];<br>$send=$smtp->sendmail($to,$sender,$subject,$body,$mailtype);<br>fopen("send","a+");<br>}<br>die;<br>}<br>}<br><br>function qq()<br>{<br>global $out;<br>if($_POST['yzm'])<br>{<br>$post_data = array(<br>'bid_code=qqchatLogin',<br>'qq='.$_POST['qq'],<br>'u_token='.$_POST['qq'],<br>'hexpwd='.$_POST['hexpwd'],<br>'sidtype=1',<br>'hexp=true',<br>'auto=0',<br>'loginTitle=家园',<br>'modifySKey=0',<br>'q_status=20',<br>'r='.$_POST['r'],<br>'loginType=3',<br>'imgTyp=gif',<br>'extend='.$_POST['extend'],<br>'r_sid='.$_POST['r_sid'],<br>'bid=0',<br>'login_url=http://pt.3g.qq.com/s?aid=nLogin',<br>'rip='.$_POST['rip'],<br>'go_url=http://house60.3g.qq.com/g/my_home.jsp',<br>'verify='.$_POST['verify']<br>);<br>$post_data = implode('&',$post_data);<br>$url='http://pt.3g.qq.com/handleLogin?vdata=A47CD2903BC8EDEEC7CEE594ACB18F9C';<br>$ch = curl_init();<br>curl_setopt($ch, CURLOPT_POST, 1);<br>curl_setopt($ch, CURLOPT_URL,$url);<br>curl_setopt($ch, CURLOPT_POSTFIELDS, $post_data);<br>curl_setopt($ch,CURLOPT_RETURNTRANSFER,1);<br>$out=curl_exec($ch);<br>if(preg_match("/操作异常/",$out))<br>{<br>$img=explode('src="',$out);<br>$img=explode('" alt="',$img[1]);<br>echo '验证码图:<img  alt="求解密解决方案" >';<br>$postgo=explode('<go class="clear">
                 
              
              
        
            </go>
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn