1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
|
#!/bin/bash
# author: rachpt
echo "hyperay 签到"
curl 'https://www.hyperay.org/sign_in.php' \
-H 'Host: www.hyperay.org' \
-H 'User-Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:58.0) Gecko/20100101 Firefox/58.0' \
-H 'Accept: */*' \
-H 'Accept-Language: zh-CN,zh;q=0.8,zh-TW;q=0.7,zh-HK;q=0.5,en-US;q=0.3,en;q=0.2' --compressed \
-H 'Content-type: application/x-www-form-urlencoded' \
-H 'Cookie: xxxxxxxxxxxxxx' \
-H 'DNT: 1' \
-H 'Connection: keep-alive' \
--data 'action=sign_in'
echo ''
echo "hdhome 签到"
echo ''
curl 'https://hdhome.org/attendance.php' \
-H 'Host: hdhome.org' \
-H 'User-Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:58.0) Gecko/20100101 Firefox/58.0' \
-H 'Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8' \
-H 'Accept-Language: zh-CN,zh;q=0.8,zh-TW;q=0.7,zh-HK;q=0.5,en-US;q=0.3,en;q=0.2' --compressed \
-H 'Cookie: xxxxxxxxxxxxxx' \
-H 'DNT: 1' \
-H 'Connection: keep-alive' \
-H 'Upgrade-Insecure-Requests: 1'
echo ''
echo "6v 签到"
echo ''
curl 'http://bt.neu6.edu.cn/forum.php' \
-H 'Host: bt.neu6.edu.cn' \
-H 'User-Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:58.0) Gecko/20100101 Firefox/58.0' \
-H 'Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8' \
-H 'Accept-Language: zh-CN,zh;q=0.8,zh-TW;q=0.7,zh-HK;q=0.5,en-US;q=0.3,en;q=0.2' --compressed \
-H 'Cookie: xxxxxxxxxxxxxx' \
-H 'DNT: 1' \
-H 'Connection: keep-alive' \
-H 'Upgrade-Insecure-Requests: 1'
echo ''
echo "hdchina 签到"
echo ''
curl 'https://hdchina.org/plugin_sign-in.php?cmd=signin' \
-H 'Host: hdchina.org' \
-H 'User-Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:58.0) Gecko/20100101 Firefox/58.0' \
-H 'Accept: */*' \
-H 'Accept-Language: zh-CN,zh;q=0.8,zh-TW;q=0.7,zh-HK;q=0.5,en-US;q=0.3,en;q=0.2' --compressed \
-H 'X-Requested-With: XMLHttpRequest' \
-H 'Cookie: xxxxxxxxxxxxxx' \
-H 'DNT: 1' \
-H 'Connection: keep-alive' \
--data 'cmd=signin'
echo ''
echo "TTG 签到"
echo ''
tempPage=`mktemp ttgpage.XXXXXX`
### 获取 cookie
curl -c ttgcookie 'https://totheglory.im/' \
-H 'Host: totheglory.im' \
-H 'User-Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:59.0) Gecko/20100101 Firefox/59.0' \
-H 'Accept: */*' \
-H 'Accept-Language: zh-CN,zh;q=0.8,zh-TW;q=0.7,zh-HK;q=0.5,en-US;q=0.3,en;q=0.2' --compressed \
-H 'Content-Type: application/x-www-form-urlencoded' \
-H 'X-Requested-With: XMLHttpRequest' \
-H 'Cookie: __cfduid=xxxxxxxxxxxxxx; uid=XXXXXX; pass=xxxxxxxx' \
-H 'DNT: 1' \
-H 'Connection: keep-alive' > $tempPage
# myTimestamp=`gawk '/token/{print $3}' $tempPage | gawk 'BEGIN{FS="\""} {print $2}'`
# 不需要上面这个!
myToken=`gawk '/token/{print $5}' $tempPage | gawk 'BEGIN{FS="\""} {print $2}'`
myLaccess=`cat "ttgcookie" | awk '/laccess/{print $7}'`
curl 'https://totheglory.im/signed.php' \
-H 'Host: totheglory.im' \
-H 'User-Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:59.0) Gecko/20100101 Firefox/59.0' \
-H 'Accept: */*' \
-H 'Accept-Language: zh-CN,zh;q=0.8,zh-TW;q=0.7,zh-HK;q=0.5,en-US;q=0.3,en;q=0.2' --compressed \
-H 'Content-Type: application/x-www-form-urlencoded' \
-H 'X-Requested-With: XMLHttpRequest' \
-H "Cookie: __cfduid=xxxxxxxxxxxxxx; uid=XXXXXX'; pass=xxxxxxxx" \
-H 'DNT: 1' \
-H 'Connection: keep-alive' \
--data "signed_timestamp=$myLaccess&signed_token=$myToken"
# 注意 使用了变量的地方 使用 双引号 不能使用 单引号。
rm -f $tempPage ttgcookie
echo ''
echo "CMCT.tv 签到"
echo ''
curl 'https://cmct.tv/plugin.php?id=dsu_paulsign:sign&operation=qiandao&infloat=1&inajax=1' \
-H 'Host: cmct.tv' \
-H 'User-Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:59.0) Gecko/20100101 Firefox/59.0' \
-H 'Accept: */*' \
-H 'Accept-Language: zh-CN,zh;q=0.8,zh-TW;q=0.7,zh-HK;q=0.5,en-US;q=0.3,en;q=0.2' --compressed \
-H 'Content-Type: application/x-www-form-urlencoded' \
-H 'X-Requested-With: XMLHttpRequest' \
-H 'Cookie: xxxxxxxxxxxxxx' \
-H 'DNT: 1' \
-H 'Connection: keep-alive' \
--data 'formhash=04fcd2f6&qdxq=ym&qdmode=1&todaysay=%C7%A9%B5%BD%C0%B2%C0%B2%C0%B2%A1%A3%A1%A3%A1%A3&fastreply=0'
echo ''
echo "所有签到完成!"
exit
|