优化:步数修改增加反作弊能力

This commit is contained in:
2025-06-05 16:45:13 +08:00
parent d9c29f2f1f
commit cec693cb8e
4 changed files with 46 additions and 4 deletions

View File

@@ -1,13 +1,14 @@
#!/bin/bash
if [ "$#" -ne "2" ];then
if [ "$#" -ne "3" ];then
echo 参数不合法!
echo eg: sh $0 [账号] [密码]
echo eg: sh $0 [账号] [密码] [基数]
exit 1
fi
acct=$1
passwd=$2
base_num=$3
random_num=$(shuf -i 1-1000 -n 1)
step=$(( 10000 + random_num ))
step=$(( base_num + random_num ))
echo `date +"%Y/%m/%d %H:%M:%S"` $acct step =\> $step
#curl --location --request GET 'https://steps.api.030101.xyz/api?account=qiezihwy@outlook.com&password=HwyXiaomi9836$&steps=12134'
curl -s --location --request GET "https://steps.api.030101.xyz/api?account=$acct&password=$passwd&steps=$step"