现在的位置: 首页 > 综合 > 正文

WEBQQ2.0协议分析(加入群)

2017年11月13日 ⁄ 综合 ⁄ 共 1491字 ⁄ 字号 评论关闭

1.获取群资料

url=http://s.web2.qq.com/api/get_group_public_info2?gcode=3454629814&vfwebqq=25b512c1221f20537fec4ffdc501ea1855b04ae1c630192fc2d944a36ca9f3e09f040469465aa811&t=1314088094890

refere=http://s.web2.qq.com/proxy.html?v=20110412001&callback=1&id=2

参数说明:

gcode 群编码(不同于gid与群号,从查找返回结果中得到)

返回结果

{"retcode":0,"result":{"ginfo":{"face":0,"memo":"","member_cnt":2,"class":187,"fingermemo":"","code":3454629814,"createtime":1290739642,"flag":16842753,

"name":"Qt开发者社区(内部群)","gid":3731407019,"owner":2925456324,"maxmember":100,"option":2}}}

2.判断是否需要验证码(如何判断待会分析,可能是从flag中得到)

3.如果需要验证码,则取验证图片

提交请求

url=http://ptlogin2.qq.com/getimage?aid=1003903&_=1314088095515

refere=http://web.qq.com/

说明:url从qqweb.app.buddyfinder.js中得到

返回验证图片

4.发送加入请求

提交请求(Post)

url=http://s.web2.qq.com/api/apply_join_group2

refere=http://s.web2.qq.com/proxy.html?v=20110412001&callback=1&id=2

r={"gcode":3454629814,"code":"dwcu","vfy":"h00ee5de2a226bf75fc61ba11ae979f2431715aea20981b8d582df48c463ef9e709cb73b04b77286dbd","msg":"abc","vfwebqq":"25b512c1221f20537fec4ffdc501ea1855b04ae1c630192fc2d944a36ca9f3e09f040469465aa811"}

参数说明:

gcode 群编码

code 验证码

vfy verifysession(cookie中得到)

msg 附加消息

vfwebqq ptwebqq(cookie中得到)

返回结果

{"retcode":0,"result":{"statu":"pending"}}

5.从Poll消息中可以得到加群结果回应

{"retcode":0,"result":[{"poll_type":"sys_g_msg","value":{"msg_id":59243,"from_uin":3731407019,"to_uin":1597984098,"msg_id2":338540,"msg_type":36,"reply_ip":176177382,

"type":"group_request_join_agree","gcode":3454629814,"t_gcode":126997969,"admin_uin":2925456324,"msg":""}}]}

抱歉!评论已关闭.