已掉线,重新登录

首页 > 绿虎论坛 > 杂类 > 超级灌水 (发帖)

标题: 自动获取好友群发消息源码

作者: @Ta

时间: 2015-01-01

点击: 1298

<?php 
header("Content-type:text/html;charset=utf-8");
$qq=$_GET["qq"];
$sid=$_GET["sid"];
function fs($sid,$qq,$nr)
{
$ch=curl_init();
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch,CURLOPT_POST,1);
curl_setopt($ch,CURLOPT_URL,"http://q32.3g.qq.com/g/s?sid={$sid}&aid=sendmsg&tfor=qq&referer=");
curl_setopt($ch,CURLOPT_POSTFIELDS,"msg={$nr}&u={$qq}&on=1&saveURL=0&do=send");
	$fs = curl_exec($ch);
	curl_close($ch);
	return $fs;
}

echo $a=file_get_contents("http://q16.3g.qq.com/g/s?sid={$sid}&3G_UIN={$qq}&saveURL=0&new3gqq=true&aid=nqqchatMain");
preg_match("/(\d{1,})页/",$a,$c);
for($x=1;$x<=$c[1];$x++){
echo "开始发送第{$x}页<br/>";
$d=file_get_contents("http://q16.3g.qq.com/g/s?sid={$sid}&aid=nqqchatMain&on=1&p={$x}");
preg_match_all("/u=(\d{5,})/",$d,$b);
$xx=count($b[1]);
echo"发送给{$xx}个好友";
for($y=0;$y<$xx;$y++){
$msg="祝你元旦快乐!欢迎访问我网站xkgq.xyz";
$bbb=$b[1][$y];
echo fs($sid,$bbb,$msg);
sleep(1);
}
echo "<hr/>";
sleep(5);
}
?>





提交qq和sid这两个get数据到这个文件就可以发了
Screenshot_2015-01-01-00-39-21.png

[隐藏样式|查看源码]


『回复列表(4|隐藏机器人聊天)』

1. 可以整理下吗
(/@Ta/2015-01-01 01:50//)

2. 把文件打包发上来吧
(/@Ta/2015-01-01 02:03//)

3. Parse error: syntax error, unexpected ' ' (T_STRING) in /storage/emulated/legacy/htdocs/we.php on line 12
(/@Ta/2015-01-01 10:35//)

4. @灰色头像,不能用
(/@Ta/2015-01-01 11:24//)

回复需要登录

7月14日 12:22 星期一

本站由hu60wap6驱动

备案号: 京ICP备18041936号-1