Ai
2 Star 1 Fork 1

陈孝松/blog

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
cpolar-get-status-html.sh 527 Bytes
一键复制 编辑 原始数据 按行查看 历史
ChenXiaoSong 提交于 2025-08-28 19:07 +08:00 . initial commit
csrf_token=$(curl -s 'https://dashboard.cpolar.com/login' | sed -n 's/.*name="csrf_token" value="\([^"]*\)".*/\1/p')
echo "${csrf_token}" | tee token.txt
# 替换 YOUR_EMAIL 和 YOUR_PASSWORD 为实际账号
curl 'https://dashboard.cpolar.com/login' \
-H 'Content-Type: application/x-www-form-urlencoded' \
--data-urlencode "login=YOUR_EMAIL" \
--data-urlencode "password=YOUR_PASSWORD" \
--data-urlencode "csrf_token=$csrf_token" \
-c cookies.txt
curl -b cookies.txt https://dashboard.cpolar.com/status > status.html
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/chenxiaosonggitee/blog.git
git@gitee.com:chenxiaosonggitee/blog.git
chenxiaosonggitee
blog
blog
master

搜索帮助