如题,鉴于动弹的幅度太大,每次都要开IE。准备将其化为便携式客户端。
因为还在工作时间,今天暂时分析到此,陆续进行可行性分析,构筑,设计,制造,测试,投入(分享)。
已经将其通信明文捕捉如下。欢迎有兴趣的朋友加入。
登陆
POST https://www.oschina.net/action/user/hash_login
Header:
x-requested-with: XMLHttpRequest
Accept-Language: ja
Referer: https://www.oschina.net/home/login?goto_page=http%3A%2F%2Fwww.oschina.net%2Ftweets
Accept: */*
Content-Type: application/x-www-form-urlencoded
UA-CPU: x86
Accept-Encoding: gzip, deflate
User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; GTB7.4; .NET CLR 1.1.4322; .NET CLR 2.0.50727; InfoPath.1; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; .NET4.0C; .NET4.0E; InfoPath.2)
Host: www.oschina.net
Content-Length: 89
Connection: Keep-Alive
Cache-Control: no-cache
Request Body:
email=*********&pwd=*******&save_login=1
注:加密采用的是Google的CryptoJS
Response:
HTTP/1.1 200 OK
Server: Tengine
Date: Tue, 30 Jul 2013 05:35:04 GMT
Content-Type: text/html;charset=utf-8
Content-Length: 0
Connection: keep-alive
Set-Cookie: oscid=""; Domain=.oschina.net; Expires=Thu, 01-Jan-1970 00:00:10 GMT; Path=/; HttpOnly
Set-Cookie: oscid=f%2F93rZS%2BfIISOZ0C5NY%2FV%2Bi4geyu8B4pJbqVZJK8uah00%2B2WQ66bqaToYhuPvnNFADH8PLp75fn5l6n2m2L63lMuRHEdf4wIMVVhW%2FEtQo8KU6I99nfA%3D%3D; Domain=.oschina.net; Expires=Wed, 30-Jul-2014 05:35:04 GMT; Path=/; HttpOnly
动弹
POST http://www.oschina.net/action/tweet/pub
Header:
x-requested-with: XMLHttpRequest
Accept-Language: ja
Referer: http://www.oschina.net/
Accept: application/json, text/javascript, */*; q=0.01
Content-Type: application/x-www-form-urlencoded
UA-CPU: x86
Accept-Encoding: gzip, deflate
User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; GTB7.4; .NET CLR 1.1.4322; .NET CLR 2.0.50727; InfoPath.1; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; .NET4.0C; .NET4.0E; InfoPath.2)
Host: www.oschina.net
Content-Length: 71
Proxy-Connection: Keep-Alive
Pragma: no-cache
Cookie: oscid=f%2F93rZS%2BfII5NY%2FV%2Bi4geyu8B4pJbqVZJK8uah00%2B2WQ66bqaToYhuPvnNFADH8PLp75fn5l6n2m2L63lMuRHEdf4D%2F0QTrn746o23ZwBe5Fk1A%3D%3D
Request Body:
user_code=q65By1dBrm43JFhFRpfIJef0Q7FPcotTXS7c9&user=242740&msg=消息内容
Response:
HTTP/1.1 200 OK
Server: Tengine
Date: Tue, 30 Jul 2013 05:38:13 GMT
Content-Type: text/html;charset=utf-8
Content-Length: 15
Proxy-Connection: Keep-Alive
Connection: Keep-Alive
{"log":2334661}
最新动弹列表取得
GET http://www.oschina.net/widgets/check-top-log?last=undefined
Header:
x-requested-with: XMLHttpRequest
Accept-Language: ja
Referer: http://www.oschina.net/
Accept: */*
UA-CPU: x86
Accept-Encoding: gzip, deflate
User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; GTB7.4; .NET CLR 1.1.4322; .NET CLR 2.0.50727; InfoPath.1; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; .NET4.0C; .NET4.0E; InfoPath.2)
Host: www.oschina.net
Proxy-Connection: Keep-Alive
Cookie: oscid=f%2F93rZS%2BfII0C5NY%2FV%2Bi4geyu8B4pJbqVZJK8uah00%2B2WQ66bqaToYhuPvnNFADH8PLp75fn5l6n2m2L63lMuRHEdf4D%2F0QTrn746o23ZwBe5Fk1A%3D%3D
Response:
<li log='2334747'>
<span class='portrait'><a href="http://my.oschina.net/jickie" target="_blank"><img src="http://static.oschina.net/uploads/user/121/242740_50.jpg" align="absmiddle" alt="jickie阿文" title="jickie阿文" class="SmallPortrait" user="242740"/></a></span>
<span class='body'>
<span class='user'><a href="http://my.oschina.net/jickie">jickie阿文</a>:</span><span class='log'>Move</span>
<span class='time'>1分钟前(<a href="http://my.oschina.net/jickie/tweet/2334747">0评</a>)
</span>
</span>
<div class='clear'></div>
</li>
讨论回复
POST http://my.oschina.net/action/tweet/rpl
Header:
x-requested-with: XMLHttpRequest
Accept-Language: ja
Referer: http://my.oschina.net/jickie/tweet/2334661
Accept: */*
Content-Type: application/x-www-form-urlencoded
UA-CPU: x86
Accept-Encoding: gzip, deflate
User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; GTB7.4; .NET CLR 1.1.4322; .NET CLR 2.0.50727; InfoPath.1; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; .NET4.0C; .NET4.0E; InfoPath.2)
Host: my.oschina.net
Content-Length: 40
Proxy-Connection: Keep-Alive
Pragma: no-cache
Cookie: oscid=f%2F93rZS%2BfIIC5NY%2FV%2Bi4geyu8B4pJbqVZJK8uah00%2B2WQ66bqaToYhuPvnNFADH8PLp75fn5l6n2m2L63lMuRHEdf4D%2F0QTrn746o23ZwBe5Fk1A%3D%3D
Request Body:
log=2334661&user=242740&msg=test&tweet=1
Response:
{"log":2334718,"reply_count":1,"user":242740,"time":"1分钟前","content":"test"}
GET http://my.oschina.net/action/ajax/get_tweet_reply?id=2334718
Header:
x-requested-with: XMLHttpRequest
Accept-Language: ja
Referer: http://my.oschina.net/jickie/tweet/2334661
Accept: */*
UA-CPU: x86
Accept-Encoding: gzip, deflate
User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; GTB7.4; .NET CLR 1.1.4322; .NET CLR 2.0.50727; InfoPath.1; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; .NET4.0C; .NET4.0E; InfoPath.2)
Host: my.oschina.net
Proxy-Connection: Keep-Alive
Cookie: oscid=f%2F93rZS%2BfII0C5NY%2FV%2Bi4geyu8B4pJbqVZJK8uah00%2B2WQ66bqaToYhuPvnNFADH8PLp75fn5l6n2m2L63lMuRHEdf4D%2F0QTrn746o23ZwBe5Fk1A%3D%3D
Response:
li id='LI_2334718'>
<table class='ostable'>
<tr>
<td class='portrait'><a href="http://my.oschina.net/jickie" target="_blank"><img src="http://static.oschina.net/uploads/user/121/242740_50.jpg" align="absmiddle" alt="jickie阿文" title="jickie阿文" class="SmallPortrait" user="242740"/></a></td>
<td class='TweetReplyBody'>
<div class='post'>
<a href="http://my.oschina.net/jickie" target="_blank">jickie阿文</a>
<br/>
test
</div>
<div class='opts'>
<span class='links'>
<a href="javascript:delete_tweet(2334718)">删除</a>
<a href="javascript:reply_rtweet(2334718,2334718,'jickie阿文')">回复</a>
</span>
1分钟前 发布 </div>
</td>
</tr>
</table>
</li>