HostLoc php多用户自动签到脚本 每天大概是20个 - Assbbs
HostLoc php多用户自动签到脚本 每天大概是20个金币吧,我已经上元老了 <?php $useList = array &…
HostLoc php多用户自动签到脚本 每天大概是20个金币吧,我已经上元老了 <?php $useList = array & 39;帐号1& 39;=>& 39;密码1& 39;, & 39;帐号2& 39;=>& 39;密码2& 39; ; foreach $useList as $k=>$v { locSign $k,$v ; } function locSign $use,$pwd { $html = http post & 39;http://www.hostloc.com/member.php?mod=logging&action=login&loginsubmit=yes&infloat=yes&lssubmit=yes&inajax=1& 39;,& 39;fastloginfield=username&username=& 39;.urlencode $use .& 39;&cookietime=2592000&password=& 39;.urlencode $pwd .& 39;&quickforward=yes&handlekey=ls& 39; ; if !strrpos $html,& 39;window.location.href& 39; {echo $use.& 39; login error<br>& 39;;return false;} $cookie = getCookie $html,& 39;Set-Cookie: & 39;,& 39;;& 39; ; for $i=26200; $i<=26210; $i++ { $html = http get "http://www.hostloc.com/space-uid-{$i}.html",$cookie ; } echo $use.& 39; Sign ok!!!<br>& 39;; } function http get $url,$cookie { $curl = curl init $url ; curl setopt $curl, CURLOPT RETURNTRANSFER, 1 ; curl setopt $curl, CURLOPT HTTPHEADER,array & 39;User-Agent: Mozilla/5.0 Windows NT 10.0; WOW64; rv:35.0 Gecko/20100101 Firefox/35.0& 39;,& 39;Cookie: & 39;.$cookie ; curl setopt $curl, CURLOPT TIMEOUT, 20 ; $src = curl exec $curl ; curl close $curl ; return $src; } function http post $url,$body { $ch = curl init ; curl setopt $ch, CURLOPT URL,$ur…