> For the complete documentation index, see [llms.txt](https://xn--6o0a585a.gitbook.io/devops/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://xn--6o0a585a.gitbook.io/devops/jin-jie-ji-shu/6our.com-shua-ping-lun-guang-gao.md).

# 6our.com 刷评论广告

![](https://2790782217-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1B0zycoBrU18tXqA0db8%2Fuploads%2FuNfEzfdh1rDSOQ01dS0g%2Fimage.png?alt=media\&token=ad233877-2cf4-42ab-9cd0-5c90018c8a9a)

![](https://2790782217-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1B0zycoBrU18tXqA0db8%2Fuploads%2FH7jCwJg2kOBPr3TcsFNf%2Fimage.png?alt=media\&token=0ecddcaa-d8ed-4ec2-a68c-f8e926e5a660)

<https://t.me/HackerNiao/34161>

```bash
#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
```
