shell发动弹

清华大佬耗费三个月吐血整理的几百G的资源,免费分享!....>>>

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/bin/bash
email='xxxxxx'  #这里自己处理urlencode,比如shacha@gmail.com 这里填shacha%40gmail.com
password='xxxxxxx' #同上
msgRaw='今天又被自己帅醒了'
 
 
msg=`echo -n $msgRaw|od -An -tx1|tr ' ' %`
 
curl -H "Content-Type:application/x-www-form-urlencoded" -d "pwd=`echo -n $password|sha1sum|cut -c -40`&email=$email" -D cookie.txt  "https://www.oschina.net/action/user/hash_login"
 
user_code=`curl -H "Content-Type:application/x-www-form-urlencoded" -H "User-Agent:Mozilla/5.0"  -b cookie.txt "http://www.oschina.net/"|grep -oE "name='user_code' value='[a-zA-Z0-9]+"|cut -c 25-`
 
echo $user_code
 
user=`curl -H "Content-Type:application/x-www-form-urlencoded" -H "User-Agent:Mozilla/5.0"   -b cookie.txt "http://www.oschina.net/"|grep -oE "name='user' value='[0-9]+"|cut -c 20-`
 
echo $user
 
curl -H "Content-Type:application/x-www-form-urlencoded" -H "User-Agent:Mozilla/5.0"   -b cookie.txt -d "user=$user&user_code=$user_code&msg=$msg" "http://my.oschina.net/action/tweet/pub"