Comments (16)
我已近修复了这个问题,但是用的是java。
k.qq.SmartQQ - QQ群消息:from:null,content:直接圆通
18:00:08.228 [main] INFO com.yiji.hack.tools.HttpUtil - 请求url:http://d1.web2.qq.com/channel/poll2
参数:[r={"clientid":53999199,"ptwebqq":"04b9b6c10f2a1187ee547c47bbfeef75bb281908cf639d86f7809284850bc40e","psessionid":"8368046764001d636f6e6e7365727665725f77656271714031302e3133332e34312e383400001ad00000066b026e040015808a206d0000000a406172314338344a69526d0000002859185d94e66218548d1ecb1a12513c86126b3afb97a3c2955b1070324790733ddb059ab166de6857","key":""},]
18:00:08.229 [main] INFO com.yiji.hack.tools.HttpUtil - http header:{Origin=http://d1.web2.qq.com, Referer=http://d1.web2.qq.com/proxy.html?v=20151105001&callback=1&id=2}
18:00:16.956 [main] INFO com.yiji.hack.tools.HttpUtil - http请求http://d1.web2.qq.com/channel/poll2成功,返回状态码为:200
18:00:16.956 [main] DEBUG com.yiji.hack.qq.SmartQQ - 接收到qq消息:{"result":[{"poll_type":"group_message","value":{"content":[["font",{"color":"000000","name":"微软雅黑","size":10,"style":[0,0,0]}],"圆通10块"],"from_uin":1883605850,"group_code":1883605850,"msg_id":2028,"msg_type":0,"send_uin":2799814939,"time":1450087216,"to_uin":820421292}}],"retcode":0}
18:00:16.957 [main] INFO com.yiji.hack.qq.SmartQQ - QQ群消息:from:null,content:圆通10块
18:00:17.162 [main] INFO com.yiji.hack.tools.HttpUtil - 请求url:http://d1.web2.qq.com/channel/poll2
参数:[r={"clientid":53999199,"ptwebqq":"04b9b6c10f2a1187ee547c47bbfeef75bb281908cf639d86f7809284850bc40e","psessionid":"8368046764001d636f6e6e7365727665725f77656271714031302e3133332e34312e383400001ad00000066b026e040015808a206d0000000a406172314338344a69526d0000002859185d94e66218548d1ecb1a12513c86126b3afb97a3c2955b1070324790733ddb059ab166de6857","key":""},]
18:00:17.164 [main] INFO com.yiji.hack.tools.HttpUtil - http header:{Origin=http://d1.web2.qq.com, Referer=http://d1.web2.qq.com/proxy.html?v=20151105001&callback=1&id=2}
18:00:30.781 [main] INFO com.yiji.hack.tools.HttpUtil - http请求http://d1.web2.qq.com/channel/poll2成功,
from smartqqbot.
是哪里进行了修改?Cookies? Referer?
from smartqqbot.
修改 Referer ,post的数据中 clientId 是数字,不是字符串,不加引号
from smartqqbot.
Referer我改过了不行,clientId也一直都是数字
from smartqqbot.
clientid 必须是 53999199 你抓包看看你自己程序 post的content-length 和 浏览器的是不是一样。
from smartqqbot.
clientId改为53999199后成功登录和接受信息了。。。这协议改得有点让人无语,以及没有消息和有消息的retcode都变成0 了 非常感谢你的帮助
from smartqqbot.
get_friend_uin2,添加了个t参数,添加后返回了100000,导致拿不到account,是不是对Cookie有要求的原呢?
from smartqqbot.
我不确定get_friend_uin2这个接口官方还存不存在,但是官方的webqq我没见到还有使用这个接口了,可能已废弃。
15:39 update
见到这个接口还在使用了,我再看看
from smartqqbot.
2天就需要重新登录一次吧
from smartqqbot.
两天登陆一次是老问题了
from smartqqbot.
最近手头有需要,注意到了你的这个项目。正好省下力气做分析了
from smartqqbot.
今晚也是着手处理了新协议的兼容问题。一会pull给你看看。我fork的版本已经在着手转python3了,等转好了我想重新梳理一下你写的框架结构。
再次表达谢意
from smartqqbot.
也很感谢你的pull!很高兴这个项目能够帮到你:D
from smartqqbot.
原vfwebqq的获取来源已经无法通过验证了,必须用新加进来的getvfwebqq来换
from smartqqbot.
免扫码自动登录已经实现,改了这几个地方
cookie换成可以存储的类型,这是状态维持的基础
分离登录和拉二维码的流程。用一次登录来尝试免二维码登录
当前登录的username不能从qrcode验证来获得,要换成查阅当前账号数据
from smartqqbot.
q512533897详聊
from smartqqbot.
Related Issues (20)
- I meet an error...Please help me,Thanks HOT 5
- 能否支持@群成员以及接收他人的@ HOT 4
- 扫描登录后报错 HOT 1
- 含有协议返回的原始包/原始包解密后的内容?
- 能够回复临时会话么
- 一段时间没有任何活动,程序就自动终止,是否能够一直处于待机状态 HOT 2
- 启用tucao插件后遇到的问题 HOT 2
- 为获取group_id列表登录qun.qq.com时提示no login
- 获取群消息,参数中不需要ptwebqq了
- 这个编码问题怎么解决,? HOT 1
- 今天用django和qqbot时发现一个sqlite线程冲突问题
- 返回用户id的功能好像不好用了
- 启动qqbot后在另一个控制台使用qq命令非常慢
- 如何获取QQ群发送的图片? HOT 2
- 2019年1月1日后是不是不能用了? HOT 1
- Just suggest users to use other framework to devlop qq robot.
- SmartQQ website closed HOT 1
- 冒死打个广告
- 老哥 冒昧的求一下tg qq互转的dll文件可以不
- 推荐作者建个交流qq群
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from smartqqbot.