6our.com 刷评论广告
Last updated
Last updated
#cat 6our.com.sh
#! /bin/bash
for username in "u1" "u2" "u3" "u4" "u5";do
passwd="benniao_u1" ad="TG体育www.tgty5.com"
curl_Chrome(){
curl -s --user-agent "Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/64.0.3282.119 Safari/537.36" -b $username -c $username $@
} #模拟chrome客户端
hash_param=`curl_Chrome "http://www.6our.com/index.php/User/Index/login" | grep -oE "[0-9a-z]+\_[0-9a-z]+" | tail -n 1` #获取浏览器分配的 hash
curl_Chrome -d "account=${username}&password=${passwd}&remember_me=1&submit=&__hash__=$hash_param" "http://www.6our.com/index.php/User/Index/checkLogin" | grep "登录成功" #进行 账户 密码 哈希 登陆
for n in {1..2023};do #热门有 2023 页 http://www.6our.com/best?&p=2023
for i in `curl_Chrome "http://www.6our.com/best?&p=$n" | tr -d "\r\n" | grep -oP 'id="content-\d+".+?</div>' | awk '{print $0}'`;do #获取每页的评论
id=`echo $i | grep -oP 'id="content-\d+"' | grep -oP '\d+'` result=`curl_Chrome -d "pid=${id}&anonymous=0&arcontent=${ad}" "http://www.6our.com/index.php/Reply/checkReply2"` #根据每页评论id回复广告
if [ "$result" -eq 1 ];then echo "`date +'%F %T'` http://www.6our.com/best?&p=$n $id $ad success" ; else echo "`date +'%F %T'` http://www.6our.com/best?&p=$n $id $ad failed" ; fi #判断广告回复是否成功
done #一页一页回复广告结束
done >> $username.log & #热门 2023 页 http://www.6our.com/best?&p=2023 广告回复结束
done