博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
开源中国动弹客户端实践(一)
阅读量:6574 次
发布时间:2019-06-24

本文共 5576 字,大约阅读时间需要 18 分钟。

  hot3.png

如题,鉴于动弹的幅度太大,每次都要开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>

转载于:https://my.oschina.net/jickie/blog/148398

你可能感兴趣的文章
为什么 ++[[]][+[]]+[+[]] = 10?
查看>>
ContentProvider
查看>>
Redis 持久化存储
查看>>
Android 自定义GridView网格布局
查看>>
关于在帧中继fr环境下的NAT网络地址转换的实验
查看>>
大海捞枕木:大数据处理平台的衍变
查看>>
2015-郭辉-项目采购管理+文档配置管理
查看>>
基于 jQuery & CSS3 实现智能提示输入框光标位置
查看>>
我的友情链接
查看>>
我的友情链接
查看>>
java加密解密___MD5的简单使用
查看>>
ThreadLocal分析
查看>>
mysql优化:连接数
查看>>
github的使用(git shell )
查看>>
如何优化js代码(1)——字符串的拼接
查看>>
PHP 时间操作 / 跳转问题
查看>>
Windows 2012 R2 FSMO角色相关小记录
查看>>
2017年6月12日笔记
查看>>
(小蚂蚁站长吧)网站优化做好这八步你就是seo第一
查看>>
使用流的方式往页面前台输出图片
查看>>