Skip to content

Instantly share code, notes, and snippets.

@lizheming
Created November 11, 2014 08:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lizheming/510a296834ead3ae390a to your computer and use it in GitHub Desktop.
Save lizheming/510a296834ead3ae390a to your computer and use it in GitHub Desktop.
某个不知名的公众号强化费的方法
<?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