Skip to content

Instantly share code, notes, and snippets.

@lizheming

lizheming/huafei.php

Created Nov 11, 2014
Embed
What would you like to do?
某个不知名的公众号强化费的方法
<?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
You can’t perform that action at this time.