微信读书iOS版本协议分析|和搜索查询数据接口

博客分类: 微信读书 阅读次数: comments

微信读书iOS版本协议分析|和搜索查询数据接口

本来想今天早点写博客 好吧 过点 明天又要 修改下 GitHub https 也给小bug 显示我持续更新博客哈哈

抓包工具:Charles

抓包平台:Mac 10.12.6 Beta (16G24b)

微信读书 服务器 使用技术:

ResinCAUCHO公司的产品,是一个非常流行的支持servletsjsp的引擎,速度非常快。Resin本身包含了一个支持HTTP/1.1的WEB服务器。虽然它可以显示动态内容,但是它显示静态内容的能力也非常强,速度直逼APACHE SERVER。许多站点都是使用该WEB服务器构建的。

Resin也可以和许多其他的WEB服务器一起工作,比如Apache serverIIS等。Resin支持Servlets 3.0标准和JSP 1.2标准。熟悉ASP和PHP的用户可以发现用Resin来进行JSP编程是件很容易的事情。

Resin支持负载平衡(Load balancing),可以增加WEB站点的可靠性。方法是增加服务器的数量。比如一台SERVER的错误率是1%的话,那么支持负载平衡的两个Resin服务器就可以使错误率降到0.01%。

Resin也是全免费的,从站点下载的就是完整版本。相对于tomcat,后者更像是一个正在研究的项目。目前resin可以支持sun的j2ee,而tomcat不能直接支持,而j2ee是基于java服务器端大系统的基础。Resin3 之后已经不在是一个简单的jsp容器,并且支持ejb,jta等企业功能。目前resin4 (2010年后已经比较稳定)性能更是优秀。并且已经支持servlet 3.0标准. pro版本是收费版本,支持负载均衡和文件缓存。普通版本独立作为web服务器性能就要差一些,可以使用apache+resin的方案借助apache的缓存功能提高性能,但负载均衡就是普通版不能比的。CAUCHO公司还为resin添加了PHP解析执行功能,能够运行php程序。但相对 php的原生版本还是有一定差距。

Tomcat 和Sun Java结合的最好,和其他应用服务器配合使用可支持完整的j2ee标准,应用也很广泛。但是从Java 普遍存在的编码问题来看,还是Resin 解决的最好。还有从使用的角度讲,个人认为Resin比Tomcat方便,而且Resin也可以结合Jbuilder6等ide使用。Resin强调使用Xml技术。

协议如下:

curl -H 'Host: weread.qq.com' -H 'Origin: http://weread.qq.com' -H 'User-Agent: Mozilla/5.0 (iPhone; CPU iPhone OS 11_0 like Mac OS X) AppleWebKit/604.1.25 (KHTML, like Gecko) Mobile/15A5304i MicroMessenger/6.5.10 NetType/WIFI Language/zh_CN' -H 'Cookie: wr_avatar=http%3A%2F%2Fwx.qlogo.cn%2Fmmhead%2FrK1nsTlCD8GxAic87cBQBrQBghicm72fkbiaPCUEUwRb1yaQF8yM0eib6w%2F0; wr_logined=1; wr_name=Liberxue; wr_skey=ThoYMbm2; wr_vid=7413057; sd_cookie_crttime=1499317803091; sd_userid=41101499317803091; pgv_pvid=73599382; pgv_pvi=9667674112' -H 'Referer: http://weread.qq.com/wrpage/book/share/226099?ref=mp&code=071V44Na0KzfRt1yfQPa0kWNMa0V44NO&state=226099' -H 'Accept-Language: zh-cn' -H 'Accept: */*' --data "bookId=226099" --compressed 'http://weread.qq.com/wrpage/review/list'
curl -H 'Host: weread.qq.com' -H 'Cookie: wr_avatar=http%3A%2F%2Fwx.qlogo.cn%2Fmmhead%2FrK1nsTlCD8GxAic87cBQBrQBghicm72fkbiaPCUEUwRb1yaQF8yM0eib6w%2F0; wr_logined=1; wr_name=Liberxue; wr_skey=ThoYMbm2; wr_vid=7413057; sd_cookie_crttime=1499317803091; sd_userid=41101499317803091; pgv_pvid=73599382; pgv_pvi=9667674112' -H 'Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8' -H 'Upgrade-Insecure-Requests: 1' -H 'User-Agent: Mozilla/5.0 (iPhone; CPU iPhone OS 11_0 like Mac OS X) AppleWebKit/604.1.25 (KHTML, like Gecko) Mobile/15A5304i MicroMessenger/6.5.10 NetType/WIFI Language/zh_CN' -H 'Accept-Language: zh-cn' --compressed 'http://weread.qq.com/wrpage/search?ref=mp&keyword=1987&code=051Sdj482Sv9lP0lDt7825lf482Sdj4P&state=665533'
curl -H 'Host: weread.qq.com' -H 'Cookie: wr_avatar=http%3A%2F%2Fwx.qlogo.cn%2Fmmhead%2FrK1nsTlCD8GxAic87cBQBrQBghicm72fkbiaPCUEUwRb1yaQF8yM0eib6w%2F0; wr_logined=1; wr_name=Liberxue; wr_skey=ThoYMbm2; wr_vid=7413057; sd_cookie_crttime=1499317803091; sd_userid=41101499317803091; pgv_pvid=73599382; pgv_pvi=9667674112' -H 'Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8' -H 'Upgrade-Insecure-Requests: 1' -H 'User-Agent: Mozilla/5.0 (iPhone; CPU iPhone OS 11_0 like Mac OS X) AppleWebKit/604.1.25 (KHTML, like Gecko) Mobile/15A5304i MicroMessenger/6.5.10 NetType/WIFI Language/zh_CN' -H 'Accept-Language: zh-cn' --compressed 'http://weread.qq.com/wrpage/search?ref=mp&keyword=time&code=051Sdj482Sv9lP0lDt7825lf482Sdj4P&state=665533'
curl -H 'Host: weread.qq.com' -H 'Cookie: wr_avatar=http%3A%2F%2Fwx.qlogo.cn%2Fmmhead%2FrK1nsTlCD8GxAic87cBQBrQBghicm72fkbiaPCUEUwRb1yaQF8yM0eib6w%2F0; wr_logined=1; wr_name=Liberxue; wr_skey=ThoYMbm2; wr_vid=7413057; sd_cookie_crttime=1499317803091; sd_userid=41101499317803091; pgv_pvid=73599382; pgv_pvi=9667674112' -H 'Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8' -H 'Upgrade-Insecure-Requests: 1' -H 'User-Agent: Mozilla/5.0 (iPhone; CPU iPhone OS 11_0 like Mac OS X) AppleWebKit/604.1.25 (KHTML, like Gecko) Mobile/15A5304i MicroMessenger/6.5.10 NetType/WIFI Language/zh_CN' -H 'Accept-Language: zh-cn' --compressed 'http://weread.qq.com/wrpage/search?ref=mp&keyword=毛姆'

微信读书iOS版本搜索协议:

curl -H 'Host: weread.qq.com' -H 'Cookie: wr_avatar=http%3A%2F%2Fwx.qlogo.cn%2Fmmhead%2FrK1nsTlCD8GxAic87cBQBrQBghicm72fkbiaPCUEUwRb1yaQF8yM0eib6w%2F0; wr_logined=1; wr_name=Liberxue; wr_skey=ThoYMbm2; wr_vid=7413057; sd_cookie_crttime=1499317803091; sd_userid=41101499317803091; pgv_pvid=73599382; pgv_pvi=9667674112' -H 'Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8' -H 'Upgrade-Insecure-Requests: 1' -H 'User-Agent: Mozilla/5.0 (iPhone; CPU iPhone OS 11_0 like Mac OS X) AppleWebKit/604.1.25 (KHTML, like Gecko) Mobile/15A5304i MicroMessenger/6.5.10 NetType/WIFI Language/zh_CN' -H 'Accept-Language: zh-cn' --compressed 'http://weread.qq.com/wrpage/search?ref=mp&keyword=time&code=051Sdj482Sv9lP0lDt7825lf482Sdj4P&state=665533'

微信读书主页协议 不完整回头再研究

https://i.weread.qq.com/feature?

{"synckey":2499788,"feature":{"DisableNetworkDiagnosis":1,"IAPCancelTime":13000,"disableAutoPlayAudio":1,"exchangeDirectly":1,"inviteFromExchangeView":1,"mustShareSuccBeforeExchange":0,"notUseCertificate":1,"shareBeforeExchange":0,"showAppStoreRecomment":0,"winwinGiftFromBookDetail":1,"winwinGiftFromReading":1,"winwinGiftMaxReceive":2,"showArticle":0,"showExchangeRuleDetail":1}}