鸿 网 互 联 www.68idc.cn

当前位置 : 服务器租用 > 服务器相关 > 批处理 > >

实验楼挂机脚本

来源:互联网 作者:佚名 时间:2015-11-04 09:39
Batch-CN是一个windows下的命令行工具包管理器,安装后使用以下这两命令分别安装curl.exe和sleep.exe: gtcurl gtsleep http://my.oschina.net/ysj/blog/517756 Batch-CN curl Batch-CN 是一个windows 下的命令行工具包管理器,安装后使用以下这两命令分别安装
Batch-CN 是一个windows 下的命令行工具包管理器,安装后使用以下这两命令分别安装curl.exe和sleep.exe:

gt curl
gt sleep

http://my.oschina.net/ysj/blog/517756
Batch-CN curl
Batch-CN 是一个windows 下的命令行工具包管理器,安装后使用以下这两命令分别安装curl.exe和sleep.exe:

gt curl
gt sleep
加上goto 循环调用和sleep 就可以得到每60秒自动重放HTTP请求的挂机脚本了。

@echo off

:g
curl -k -i --raw -o 0.dat -X POST "https://www.shiyanlou.com/courses/result/studytime/add" -H "Host: www.shiyanlou.com" -H "Connection: keep-alive" -H "Accept: */*" -H "Origin: https://www.shiyanlou.com" -H "X-Requested-With: XMLHttpRequest" -H "User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/45.0.2454.101 Safari/537.36" -H "DNT: 1" -H "Referer: https://www.shiyanlou.com/courses/running/291" -H "Accept-Encoding: gzip, deflate" -H "Accept-Language: zh-CN,zh;q=0.8,en;q=0.6" -H "Cookie: remember_token=171302|ggggg30497a982ce1f6c15484f53b0797c60f02e; session=101f60e0-f007-4478-aa5c-1ae820d09cd5.ZM8ZAwaHXV6kz5FranTu9JHpmsQ"

curl -k -i --raw -o 0.dat -X POST -d "lab_id=291&data=70%%2C83%%2C70%%2C68%%2C83%%2C83%%2C70%%2C83%%2C68%%2C70%%2C13%%2C83%%2C68%%2C70%%2C83%%2C68%%2C70%%2C13%%2C68%%2C68%%2C70%%2C71%%2C16%%2C13%%2C83%%2C76%%2C69%%2C69%%2C80%%2C32%%2C13%%2C87%%2C72%%2C73%%2C8%%2C8%%2C8%%2C87%%2C72%%2C73%%2C69%%2C8%%2C76%%2C69%%2C32%%2C13%%2C83%%2C69%%2C76%%2C8%%2C8%%2C76%%2C69%%2C69%%2C80%%2C32%%2C49%%2C13%%2C186%%2C13%%2C186%%2C13%%2C17%%2C67" "https://www.shiyanlou.com/courses/running/input" -H "Host: www.shiyanlou.com" -H "Connection: keep-alive" -H "Accept: */*" -H "Origin: https://www.shiyanlou.com" -H "X-Requested-With: XMLHttpRequest" -H "User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/45.0.2454.101 Safari/537.36" -H "Content-Type: application/x-www-form-urlencoded; charset=UTF-8" -H "DNT: 1" -H "Referer: https://www.shiyanlou.com/courses/running/291" -H "Accept-Encoding: gzip, deflate" -H "Accept-Language: zh-CN,zh;q=0.8,en;q=0.6" -H "Cookie: remember_token=171302|ggggg130497a982ce1f6c15484f53b0797c60f02e; session=101f60e0-f007-4478-aa5c-1ae820d09cd5.ZM8ZAwaHXV6kz5FranTu9JHpmsQ"

sleep 60

goto g
网友评论
<