Warning: Invalid argument supplied for foreach() in /www/wwwroot/ihuan.me/wp-content/themes/CKoo/header.php on line 10
当前位置:首页 > 未分类 > 正文

小米MIUI论坛自动回复刷积分混内测组 PHP代码

原本是暑假时候无聊弄得,两天刷进内内测组也是很爽,然后...MIUI9 MI5s并不是第一批公测然后就感觉内测组毫无卵用了,有想要进内测组玩玩(zhuangbi)的可以看下~其实是开学后不知道发些啥了23333

自动回复时取的标题然后用图灵傻傻的API回复的 基本回复很智障 建议频率不要设置太高,刷的时间不要太长混进内测就停了吧,以免被禁言~

代码写的很渣,欢迎各种提意见~~

<?php
    /*
        Power By Ihuan.me
    */
    $cookie = '';
    function fetch($url,$refer,$post){
        global $cookie;
    	$ch = curl_init();
    	curl_setopt($ch, CURLOPT_URL,$url);
        curl_setopt($ch, CURLOPT_REFERER, $refer);
    	curl_setopt($ch, CURLOPT_COOKIE,$cookie);
    	if($post!=''){
            curl_setopt($ch, CURLOPT_POST, 1);
            curl_setopt($ch, CURLOPT_POSTFIELDS, $post);
    	}
    	curl_setopt($ch, CURLOPT_USERAGENT, "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/47.0.2526.106 BIDUBrowser/8.3 Safari/537.36");
    	curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
    	curl_setopt($ch, CURLOPT_HEADER, 0);
    	curl_setopt($ch, CURLOPT_TIMEOUT, 20);
    	$re = curl_exec($ch);
    	curl_close($ch);
    	return $re;
    }
    preg_match_all('/<a .*?href="(.*?)".*?>/is',fetch('http://www.miui.com/forum.php?gid=14&page='.rand(1,24),'http://www.miui.com/index.html'),$match);
    foreach($match['1'] as $key=>$val){
            if(FALSE === strpos($val, 'thread-')){
            unset($match['1'][$key]);
            }else{
                if(!strpos($val, '-1-1.html')){
                    unset($match['1'][$key]);
                }  
            }
        }
    $url = array_values(array_flip(array_flip($match['1'])));
    $url = 'http://www.miui.com/'.$url[rand(1,24)];
    $html = fetch($url,'http://www.miui.com/index.html');
    preg_match_all('/action=\"(.*?)\"/',$html,$match);
    $reply = $match[1][1];
    preg_match_all('/<input type="hidden" name="formhash" value="(.*?)" \/>/',$html,$match);
    $hash = $match[1][1];
    preg_match_all('/<meta name="description" content="(.*?)"\/>/',$html,$match);
    $content = $match[1][0];
    $data = json_decode(fetch('http://www.tuling123.com/openapi/api?key=0344bd2d86f33bda5654b941f757137a&info='.$content),true);
    $post = array('message'=>$data['text'],'posttime'=>time(),'formhash'=>$hash,'usesig'=>1,'subject'=>'');
    fetch(str_replace('&','&','http://www.miui.com/'.$reply.'&inajax=1'),$url,$post);
?>

$cookie填上自己的Cookie,0级的就不要用了,有验证码回复不了的2333

发个小东西,诈尸假装自己还存在着~开了学就国庆放了两天,orz

上一篇: 下一篇:

51 条评论

评论加载中...
  1. Superb blog үou have here but I was wɑnting t᧐ know if
    you knew of any user discussion forums
    tһat cover the ѕame topics Ԁiscussed һere? Ӏ’d
    reаlly love tо be a paгt of group whеre І can get responses from other experienced people tһat share tһe same interest.
    If you haѵe any recommendations, ρlease lеt me know.
    Kudos!

    2018年6月21日 07:27 评论
  2. 19楼
    Taiwan; Republic of China (ROC) Opera浏览器 Windows 8
    dangtinhue.com  

    Your style is unique in comparison to other people I have read stuff
    from. I appreciate you for posting when you’ve got the opportunity, Guess I’ll just bookmark this web site.

    2018年6月15日 08:18 评论
  3. 18楼
    Turkey Safari浏览器 Mac OS X 10_13_1
    futbol  

    Hey there! I know this is kinda off topic but I was wondering which blog
    platform are you using for this website? I’m getting fed up of WordPress because I’ve had issues with
    hackers and I’m looking at options for another platform.
    I would be fantastic if you could point me in the direction of
    a good platform.

    2018年6月13日 02:21 评论
  4. 17楼
    Russian Federation 谷歌浏览器 Windows 8.1
    chuabenhthan.vn  

    Your style is very unique compared to other people I’ve
    read stuff from. Many thanks for posting when you’ve got the opportunity, Guess I’ll just bookmark this web site.

    2018年6月7日 04:47 评论
  5. 16楼
    来自天朝的朋友 谷歌浏览器 Windows 10
    UMR  

    博主,请问$怎么获取

    2018年6月6日 03:30 评论
  6. 15楼
    来自天朝的朋友 谷歌浏览器  Android 7.0 MI 5 Build/XK_Gemiui_1.3.0
      

    用不了了啊

    2018年6月5日 00:38 评论
  7. whoah this weblog is fantstic i lve studying your
    posts. Keep up the great work! You understand, lots of people are searching round for this information, you can aid
    them greatly.

    2018年6月2日 18:37 评论
  8. 13楼
    来自天朝的朋友 Safari浏览器 iPhone iPhone OS 4_3_2 like Mac OS X
    啸天  

    请问cookie怎么获取!

    2018年5月29日 16:35 评论
    • 沧海一数  

      希望大神能出个可以直接用的,例如易语言啥的。谢谢

      2018年6月2日 15:24 评论
  9. 12楼
    这家伙可能用了美佬的代理 火狐浏览器 Ubuntu Linux
    Zane  

    Hello there! This blog post couldn’t bee written any better!
    Reading through this post reminds me off my previous roommate!
    He always kept talking about this. I aam going to send this post to him.

    Pretty sure he’s going to have a goold read. Many thanks for sharing!

    2018年5月29日 04:55 评论
  10. 11楼
    这家伙可能用了美佬的代理 火狐浏览器 Ubuntu Linux
    Jacob  

    Wow, this piece of writing is good, my younger sister is aalyzing these things, thus I
    am going to inform her.

    2018年5月25日 23:06 评论

发表评论

不理你。不要啊!吃饭。吃惊。吃西瓜。飞吻!恭喜!Hi纠结!膜拜!OK抛媚眼。泡泡糖。抛钱。忍!生闷气!调皮。偷看。委屈。献花。疑问?抓狂!

小提示:Ctrl+Enter快速提交助您一臂之力~
加载中……