如何跟踪程序 Internet 请求以构建 Msn 机器人?
如何跟踪程序互联网请求?就像 Windows Live Messenger 一样,为了制作一个做同样事情的机器人。 因为我正在制作一个应用程序来验证在线用户数量,并与这些人聊天,但我想知道它在哪里连接来做到这一点。
在 Web 中,我使用 LiveHTTPHeader 或 FireBug 来查看发送 GET/Post DATA 的页面以及正在发送哪些参数。桌面应用程序怎么样?我该怎么办?
How do I track a program Internet Request? Like Windows Live Messenger, in order to make a bot that does the same thing.
Because I'm making a application that verifies the number of users online, and chat with these people, but I would like to know, where does it connect to do that.
In Web I use the LiveHTTPHeader or FireBug to see where is the page sending GET/Post DATA too and which parameters are being sent. What about desktop applications? how do I do?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
您应该使用一个库,例如在 csharp 中:
http://code.google.com/p/msnp-sharp/
因为跟踪网络请求无关紧要。如果你想制作一个机器人,你应该使用 Api。
You should use a library, for instance in csharp:
http://code.google.com/p/msnp-sharp/
Because tracking web request is irrelevant. if you want to make a bot, you should work with an Api.
Live Messenger、Skype 等应用程序通常不使用 http 协议与其服务器或对等方进行通信。相反,他们大多使用自己的、有时是基于 TCP/IP 的专有协议、默认 http 端口以外的端口。为了“监听”这些程序发送/接收的内容,您需要一个能够“嗅探”TCP 数据的程序。然而,我认为这些窃听尝试大多是徒劳的,因为您试图理解的许多程序也使用加密。
Applications like Live Messenger, Skype etc do not normally use the http protocol to communicate with their servers or peers. Instead they mostly use their own, sometimes proprietary protocols over TCP/IP, over ports other than the default http port. In order to "listen" to what these programs are sending/receiving you would need a program that "sniffs" TCP data. I imagine however that these eavesdropping attempts will mostly prove futile, since many of the programs you are trying to understand also use encryption.
使用 Wireshark 转储所有网络流量,然后使用过滤器,以便仅保留 Messenger 发送的数据。
http://www.wireshark.org/
Use Wireshark to dump all your network traffic, then use filters so you keep only the data that Messenger sends.
http://www.wireshark.org/