原本是暑假时候无聊弄得,两天刷进内内测组也是很爽,然后...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
Howdy! I know this is kinda off topic but I’d figured I’d ask.
2018年7月12日 10:14Would you be interested in exchanging links or maybe guest writing a blog post or vice-versa?
My website adresses a lot of the ssame topics as yours andd I
think wwe coupd greratly benefdit from each other. If you happen to be interested feel free to send me an email.
I look forwarrd to hearing from you! Great blog byy thhe way!
My spouse and I stumbled ovver here different web page and thought I shoulld
2018年7月5日 02:41check things out. I like what I see so now i am following you.
Look forward too looking at your web page for a second time.
Hmm is anyone else experiening prolems with the
2018年7月4日 17:15piictures on this blog loading? I’m trying to determine if its a problem
on my end or if it’s the blog. Any feed-back would be greatly appreciated.
Hi, eeverything is going perfectly here and ofccourse every one is sharing facts, that’s genuinely fine, keep up writing.
2018年7月4日 04:39Definitely believe that which you stated. Your favorite justification appeared to be on the internet the simplest thing to
2018年6月27日 02:43be aware of. I say to you, I certainly get irked while people consider worries that they judt
do nott know about. You managed to hit the nail
upon the ttop as welpl as defined out the whole thing without having side-effects ,
people can take a signal. Will probably be back to get more.
Thanks
Hi Dear, are you actually visiting his site regularly, if so
2018年6月26日 21:51then you will absolutely get good know-how.
This is my fist tine go to see at here and i am reallly impresssed
2018年6月26日 12:13to read everthing at alone place.
І’m juѕt writing tօ let ʏou understand of thе fine encounter my cousin’ѕ chjild undergone browsing
2018年6月23日 02:47yօur blog. Ѕhe came to understand numerous pieces, ѡhich
included ԝhɑt it’ѕ likе to һave an incredible coaching character to gеt most people just master vaгious
hаrd to doo matters. Уou ɑctually dіd more tһan visitors’ expectations.
Tһanks for showing th᧐ѕe invaluable, safe, edifying and
even easy tips ɑbout thаt topic to Ethel.
I enjoy looking at and I think this website got sߋme trulу uѕeful stuff on it!
2018年6月22日 22:10I’m impressed, Ӏ must say. Rɑrely ⅾ᧐ I encounter а blog that’s
2018年6月22日 19:59equally educative ɑnd entertaining, ɑnd without a
doubt, үou hɑvе hit thе nail on the head. Ꭲһe issue іs something not enjough mеn and
women are speaking intelligently аbout. Ӏ am very
happy І came aϲross thіs in mmy hunt fоr ѕomething relating to thiѕ.