全球主机交流论坛

 找回密码
 注册

QQ登录

只需一步,快速开始

CeraNetworks网络延迟测速工具IP归属甄别会员请立即修改密码
查看: 2059|回复: 22
打印 上一主题 下一主题

有人要去刷落伍么。。。。

[复制链接]
跳转到指定楼层
1#
发表于 2012-8-1 16:16:19 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
上午有人说的那个洞洞现在还有。。。。一个线程一秒一帖没问题。。。一天就能刷上几十万。。。。

谁贡献个号我去玩玩。。。自己就剩一个。。不敢玩。。。
2#
发表于 2012-8-1 16:16:39 | 只看该作者
已经不行了,我都刷完了。

下午被小林加红后,鱼直接加过滤了。
3#
 楼主| 发表于 2012-8-1 16:17:52 | 只看该作者
刚刚发这帖子的前几分钟我还试了下。。。有效。。。
4#
发表于 2012-8-1 16:20:11 | 只看该作者
风云主机 发表于 2012-8-1 16:17
刚刚发这帖子的前几分钟我还试了下。。。有效。。。

被审核了,不加分。
5#
发表于 2012-8-1 16:20:53 | 只看该作者
真是蛋疼
6#
 楼主| 发表于 2012-8-1 16:21:02 | 只看该作者
joyanhui 发表于 2012-8-1 16:20
被审核了,不加分。

不明真相。。我发了一个。。自动删除。。。分加上了。。没敢多发。。就一个
7#
发表于 2012-8-1 16:21:22 | 只看该作者
风云主机 发表于 2012-8-1 16:17
刚刚发这帖子的前几分钟我还试了下。。。有效。。。

重新测试了一下,依旧有效。。。。

刚刚看错马甲了
8#
 楼主| 发表于 2012-8-1 16:22:23 | 只看该作者
重发下代码。。。有想刷的尽管去吧。。。
  1. <?php

  2. // discuz发帖类
  3. // by xjy @ vpswind.com

  4. class DzPost{
  5.         var $cookiefile;
  6.         var $site;
  7.         var $useragent;
  8.         var $formhash;
  9.         var $version;

  10.         function __construct($site, $version){
  11.                 $this->site = $site;
  12.                 $this->cookiefile = '/tmp/cookie'.getmypid().'.txt';
  13.                 $this->useragent = 'Mozilla/4.0 (compatible; MSIE 5.01; Windows NT 5.0)';
  14.                 $this->version = $version;
  15.         }

  16.         // 登录
  17.         function login($username, $password){

  18.                 switch($this->version){
  19.                         case '72':
  20.                                 $url_login = "http://".$this->site."/logging.php?action=login";
  21.                                 $argv_login = array(
  22.                                                 'action'=>'login',
  23.                                                 'loginsubmit'=>'yes',
  24.                                                 'username'=>$username,
  25.                                                 'password'=>$password,
  26.                                                 'cookietime'=>'2592000'
  27.                                 );
  28.                                 break;
  29.                         case 'x20':
  30.                                 $url_login = "http://".$this->site.
  31.                                         "/member.php?mod=logging&action=login&loginsubmit=yes".
  32.                                         "&infloat=yes&lssubmit=yes&inajax=1";
  33.                                 $argv_login = array(
  34.                                         'action'=>'login',
  35.                                         'loginsubmit'=>'yes',
  36.                                         'username'=>$username,
  37.                                         'password'=>$password,
  38.                                         'cookietime'=>'2592000'
  39.                                 );
  40.                                 break;
  41.                 }
  42.                 $ch_login = curl_init();
  43.                 curl_setopt($ch_login, CURLOPT_URL, $url_login);
  44.                 curl_setopt($ch_login, CURLOPT_RETURNTRANSFER, TRUE);
  45.                 curl_setopt($ch_login, CURLOPT_POST, TRUE);
  46.                 curl_setopt($ch_login, CURLOPT_POSTFIELDS, $argv_login);
  47.                 curl_setopt($ch_login, CURLOPT_HEADER, TRUE);
  48.                 curl_setopt($ch_login, CURLOPT_COOKIEJAR, $this->cookiefile);
  49.                 curl_setopt($ch_login, CURLOPT_USERAGENT, $this->useragent);
  50.                 $html_login = curl_exec($ch_login);

  51.                 if(!strpos($html_login, 'errorhandle_')){
  52.                         return TRUE;
  53.                 }
  54.         }

  55.         // 获得formhash
  56.         function getformhash($fid){

  57.                 switch($this->version){
  58.                         case '72':
  59.                                 $url = "http://".$this->site."/post.php?action=newthread&fid={$fid}";
  60.                                 break;
  61.                         case 'x20':
  62.                                 $url = "http://".$this->site."/forum.php?mod=post&action=reply&fid={$fid}";
  63.                                 break;
  64.                 }
  65.                
  66.                 $html_formhash = $this->get_html($url);
  67.                 preg_match("/"formhash" value="(.*?)"/", $html_formhash, $array);
  68.                 $formhash = $array[1];
  69.                 return $formhash;
  70.         }


  71.         function get_html($url){
  72.                 $ch = curl_init();
  73.                 curl_setopt($ch, CURLOPT_URL, $url);
  74.                 curl_setopt($ch, CURLOPT_HEADER, TRUE);
  75.                 curl_setopt($ch, CURLOPT_RETURNTRANSFER, TRUE);
  76.                 curl_setopt($ch, CURLOPT_COOKIEFILE, $this->cookiefile);
  77.                 curl_setopt($ch, CURLOPT_COOKIEJAR, $this->cookiefile);
  78.                 curl_setopt($ch, CURLOPT_USERAGENT, $this->useragent);
  79.                 $html = curl_exec($ch);
  80.                 return $html;
  81.         }


  82.         function post_subject($subject, $message, $fid, $typeid=NULL){
  83.                 if(empty($this->formhash)){
  84.                         $this->formhash = $this->getformhash($fid);
  85.                 }

  86.                 switch($this->version){
  87.                         case '72':
  88.                                 $url = "http://".$this->site."/post.php?action=newthread&fid={$fid}&extra=&topicsubmit=yes";
  89.                                 $argv = array(
  90.                                         'action'=>'newthread',
  91.                                         'fid'=>$fid,
  92.                                         'formhash'=>$this->formhash,
  93.                                         'subject'=>$subject,
  94.                                         'typeid'=>'1',
  95.                                         'message'=>$message,
  96.                                         'topicsubmit'=>'yes',
  97.                                         'usesig'=>'1'
  98.                                 );
  99.                                 break;

  100.                         case 'x20':
  101.                                 $url = "http://".$this->site."/forum.php?mod=post&action=newthread&fid={$fid}&extra=&topicsubmit=yes";
  102.                                 $argv = array(
  103.                                         'formhash'=>$this->formhash,
  104.                                         'message'=>$message,
  105.                                         'subject'=>$subject,
  106.                                         'fid'=>$fid,
  107.                                         'replysubmit'=>'yes'
  108.                                 );
  109.                                 break;
  110.                 }
  111.                 isset($typeid) && $argv['typeid'] = $typeid;

  112.                 $ch = curl_init();
  113.                 curl_setopt($ch, CURLOPT_URL, $url);
  114.                 curl_setopt($ch, CURLOPT_RETURNTRANSFER, TRUE);
  115.                 curl_setopt($ch, CURLOPT_POST, TRUE);
  116.                 curl_setopt($ch, CURLOPT_POSTFIELDS, $argv);
  117.                 curl_setopt($ch, CURLOPT_HEADER, TRUE);
  118.                 curl_setopt($ch, CURLOPT_COOKIEFILE, $this->cookiefile);
  119.                 curl_setopt($ch, CURLOPT_COOKIEJAR, $this->cookiefile);
  120.                 curl_setopt($ch, CURLOPT_USERAGENT, $this->useragent);
  121.                 $html = curl_exec($ch);

  122.                 switch($this->version){
  123.                         case '72':
  124.                                 preg_match("/location: viewthread.php\?tid=(\d+)/", $html, $preg_array);
  125.                                 break;

  126.                         case 'x20':
  127.                                 preg_match("/window.location.href \='forum.php\?mod=viewthread&tid=(\d+)/", $html, $preg_array);
  128.                                 break;
  129.                 }

  130.                 if(!empty($preg_array[1])){
  131.                         return $preg_array[1];
  132.                 }else{
  133.                         return FALSE;
  134.                 }
  135.         }
  136.          
  137.         // 发回复
  138.         function post_reply($message, $fid, $tid){
  139.                 if(empty($this->formhash)){
  140.                         $this->formhash = $this->getformhash($fid);
  141.                 }

  142.                 switch($this->version){
  143.                         case '72':
  144.                                 $url = "http://".$this->site."/post.php?action=reply&fid={$fid}&tid={$tid}";       
  145.                                 $argv= array(
  146.                                         'action'=>'reply',
  147.                                         'fid'=>$fid,
  148.                                         'tid'=>$tid,
  149.                                         'formhash'=>$this->formhash,
  150.                                         'message'=>$message,
  151.                                         'replysubmit'=>'yes',
  152.                                         'usesig'=>'1'
  153.                                 );
  154.                                 break;

  155.                         case 'x20':
  156.                                 $url = "http://".$this->site."/forum.php?mod=post&action=reply&fid={$fid}";
  157.                                 $argv = array(
  158.                                         'formhash'=>$this->formhash,
  159.                                         'message'=>$message,
  160.                                         'subject'=>'',
  161.                                         'forum'=>'post',
  162.                                         'action'=>'reply',
  163.                                         'fid'=>$fid,
  164.                                         'tid'=>$tid,
  165.                                         'replysubmit'=>'yes'
  166.                                 );
  167.                                 break;
  168.                 }

  169.                 $ch = curl_init();
  170.                 curl_setopt($ch, CURLOPT_URL, $url);
  171.                 curl_setopt($ch, CURLOPT_RETURNTRANSFER, TRUE);
  172.                 curl_setopt($ch, CURLOPT_POST, TRUE);
  173.                 curl_setopt($ch, CURLOPT_POSTFIELDS, $argv);
  174.                 curl_setopt($ch, CURLOPT_HEADER, TRUE);
  175.                 curl_setopt($ch, CURLOPT_COOKIEFILE, $this->cookiefile);
  176.                 curl_setopt($ch, CURLOPT_COOKIEJAR, $this->cookiefile);
  177.                 curl_setopt($ch, CURLOPT_USERAGENT, $this->useragent);
  178.                 $html = curl_exec($ch);
  179.                 if(strpos($html, "tid={$tid}")){
  180.                         return TRUE;
  181.                 }else{
  182.                         return FALSE;
  183.                 }

  184.         }

  185.         function get_id($fids, $orderby='lastpost', $page=1){
  186.                 $fid_key = array_rand($fids);
  187.                 $fid = $fids[$fid_key];

  188.                 switch($this->version){
  189.                         case 'x20':
  190.                                 $furl = "http://".$this->site."/forum.php?mod=forumdisplay&fid={$fid}&filter=author&orderby={$orderby}&page={$page}";
  191.                                 break;
  192.                         case '72':
  193.                                 $furl = "http://".$this->site."/forumdisplay.php?fid={$fid}&orderby={$orderby}&page={$page}";
  194.                                 break;
  195.                 }
  196.                 $html = $this->get_html($furl);
  197.                 preg_match_all("/id="normalthread_(\d+)"/", $html, $preg_tid);
  198.                 $tid_array = $preg_tid[1];
  199.                 return array($fid, $tid_array[0]);
  200.         }

  201. }
复制代码
9#
发表于 2012-8-1 16:23:34 | 只看该作者
10#
发表于 2012-8-1 16:46:19 | 只看该作者
额/刷这个有什么意思啊...
您需要登录后才可以回帖 登录 | 注册

本版积分规则

Archiver|手机版|小黑屋|全球主机交流论坛

GMT+8, 2025-11-7 04:07 , Processed in 0.068450 second(s), 10 queries , Gzip On, MemCache On.

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表