| 四夕青俊 |
2012-08-21 19:41 |
代码运行正常,QQ也会提醒有留言,但是到留言板看并没有,应该是TX的问题,直接贴代码。客户端发帖不知道会成啥样。。。 <?php include("head.html"); echo '<title>QQ空间留言刷入</title></head><body>';
function save($url,$postcot){ $cn=curl_init(); curl_setopt($cn,CURLOPT_URL,$url); curl_setopt($cn,CURLOPT_USERAGENT,'TTMobile/09.03.18/symbianOS9.1 Series60/3.0 Nokia6120cAP3.03'); curl_setopt($cn,CURLOPT_POST,1); curl_setopt($cn,CURLOPT_POSTFIELDS,$postcot); curl_setopt($cn,CURLOPT_RETURNTRANSFER,1); $content=curl_exec($cn);
curl_close($cn); Return $content; } Function getValue($body){ Preg_match_all('!name="(iv_format|msg|submitbtn|sid|entry|B_UID|iv_backurl|amp;sid|sign|r_sid)".*value="(.*)"!isU',$body,$result,PREG_SET_ORDER); Return $result; } Function getImg($body){ Preg_match('!(<img[^>]*验证码[^>]*>)!is',$body,$result); Return $result[1]; } $qq=$_POST['qq']; $sid=$_POST['sid']; $httime=$_POST['httime']; $htcs=$_POST['htcs']; $_content=$_POST['content']; $content=explode("#",$_content); $cnt=count($content); $g=$_POST['g']; if(isset($_POST['qq'])||$g=="提交") { for($i=$htcs;$i>0;$i--) {$ra=mt_rand(0,$cnt-1); if($g['g']=="提交") { $ml='iv_format='.$_POST['iv_format'].'&msg='.$_POST['msg'].'&submitbtn='.$_POST['submitbtn'].'&sid='.$_POST['sid'].'&entry='.$_POST['entry'].'&B_UID='.$_POST['B_UID'].'&iv_backurl='.$_POST['iv_backurl'].'&ispostmsg='.$_POST['ispostmsg'].'&sid='.$_POST['amp;sid'].'&sign='.$_POST['sign'].'&iv_verify='.$_POST['iv_verify'].'&r_sid='.$_POST['r_sid'].'&msg='.$_POST['msg'].'&submitbtn='.$_POST['submitbtn'].'&sid='.$_POST['sid'].'&entry='.$_POST['entry'].'&B_UID='.$_POST['B_UID'].'&iv_backurl='.$_POST['iv_backurl'].'&ispostmsg='.$_POST['ispostmsg'].'&sid='.$_POST['amp;sid'].'&sign='.$_POST['sign']; $save=save('http://blog60.z.qq.com/mmsgb/add_msg_action_switch.jsp',$ml); $g=NULL; } else $save=save("http://blog30.z.qq.com/mmsgb/add_msg.jsp?entry=blog&sid=".$sid,'msg='.$content[$ra].'&sign=0&B_UID='.$qq.'&entry=board'); if(strpos($save,'验证码')) { $ret=getValue($save); $img=getImg($save); echo<<<EOF <form action="" method="post"> 系统检测到您的号码可能有安全隐患,需要进行安全验证。<br/> $img <br/> <input type="text" name="iv_verify"> EOF; Foreach($ret as $arr) Echo "<input type='hidden' name='{$arr[1]}' value='{$arr[2]}'/>"; echo '<input type="hidden" name="htcs" value="'.($i-1).'"/> <input type="hidden" name="httime" value="'.$httime.'"/> <input type="hidden" name="content" value="'.$_content.'"/> <input type="hidden" name="qq" value="'.$qq.'"/> <input type="hidden" name="sid" value="'.$sid.'"/> <input type="submit" name="g" value="提交"/> </form></body></html>'; exit; } sleep($httime); } } else { ?> <form action=""method="post"> 被踩的QQ号码:<br/><input type="text" name="qq"/><br/> 你的SID码:<br/><input type="text" name="sid"/><br/> 留言内容(多个用#分开,系统随机选取一条回复):<br/><input type="text" name="content"/><br/> 每隔多少秒回帖一次:<br/><input type="text" name="httime" maxlength="5"/><br/> 回帖次数:<br/><input type="text" name="htcs" maxlength="5"/><br/> <input type="submit" value="提交"/> </form>
<?php } ?> |
|