利用shell脚本执行定时任务从而进行自动签到
♾️ shell 代码:URL="https://www.dalao.net/signin.htm"
COOKIE=""
response=$(curl -s -X POST \
--max-time 30 \
-k \
-H "accept: text/plain, */*; q=0.01" \
-H "accept-language: zh-CN,zh;q=0.9" \
-H "content-length: 0" \
-H "origin: https://www.dalao.net" \
-H "referer: https://www.dalao.net/" \
-H "sec-ch-ua: \"Not A(Brand\";v=\"8\", \"Chromium\";v=\"132\", \"Google Chrome\";v=\"132\"" \
-H "sec-ch-ua-mobile: ?0" \
-H "sec-ch-ua-platform: \"Windows\"" \
-H "sec-fetch-dest: empty" \
-H "sec-fetch-mode: cors" \
-H "sec-fetch-site: same-origin" \
-H "user-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/132.0.0.0 Safari/537.36" \
-H "x-requested-with: XMLHttpRequest" \
-H "Cookie: ${COOKIE}" \
"${URL}")
echo "${response}" 