Created
November 11, 2014 08:54
-
-
Save lizheming/510a296834ead3ae390a to your computer and use it in GitHub Desktop.
某个不知名的公众号强化费的方法
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function p($url, $fansid = "311076") { | |
$curl = curl_init($url); | |
curl_setopt($curl, CURLOPT_POSTFIELDS, array( | |
"rid" => "3", | |
"fansid" => $fansid | |
)); | |
curl_setopt($curl, CURLOPT_RETURNTRANSFER, true); | |
try { | |
$res = curl_exec($curl); | |
} catch(Exception $e) { | |
echo $e->getMessage(); | |
sleep(20); | |
$res = curl_exec($curl); | |
} | |
curl_close($curl); | |
return $res; | |
} | |
$url = "http://123.57.133.171/mobile.php?act=module&rid=3&name=ewei_comeon&do=help&weid=1"; | |
do { | |
p($url); | |
sleep(1); | |
}while(true); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment