Windows Mobile 6 上的网络监控
我目前正在尝试为Windows Mobile 6编写一个网络监控软件。我在Google上搜索了很多,有些人说不可能使用NDIS驱动程序或WinPcap等来监控任何网络接口。 其他人说这是可能的。 事实是,我在网上没有找到任何例子,也没有找到任何源代码。
因此我想问这个社区:是否可以用C或C#编写一个适用于windows mobile数据链路层的抓包工具?
最诚挚的问候
I am currently trying to write a network monitoring software for windows mobile 6. I googled a lot and some people say that it is not possible to use a NDIS driver or WinPcap or so for monitoring any network interface. Others say that it is possible. Fact is, that I found no exaples, nor any sourcecode on the net.
Therefore I ask this community: Is it possible to write a packet capturing tool that works on data-link layer for windows mobile in C or C#?
with best regards
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
桌面和服务器 Windows 产品具有非常明确的、通用的和可插入的结构,您可以将挂钩插入到网络层中。 (查找 LSP 或分层服务提供商 - 这就是防病毒/防火墙程序如何将自身插入到监视网络流量中)。 就 WinPCap 而言,它插入的 NDIS 驱动程序级别低一级,但无论如何,Windows Mobile 在这方面并不那么灵活。 不过,我不一定认为这只是微软的短视行为——提供通用且可插拔的 LSP 或 NDIS 层需要更多的能力,而大多数移动设备根本无法承受。
这里最重要的一点 - Windows Mobile 不支持 NDIS 数据包捕获。 最接近具有数据包捕获功能的移动平台是 Windows Embedded CE。
因此,为了捕获 Windows Mobile 的网络流量,您需要开发自己的 NDIS 驱动程序框架。 这不是一个小任务。
Desktop and Server Windows products have a very defined, generic, and pluggable structure into which you can insert hooks into the network layer. (Look up LSP or Layered Service Provider - this is how AntiVirus/Firewall programs plug themselves into monitoring your network traffic). As far as WinPCap, it plugs in one level lower at the NDIS driver level, but regardless, Windows Mobile just is not nearly as flexible when it comes to this. I don't necessarily think it's just Microsoft being short-sighted here, though - it takes much more power to provide a generic and pluggable LSP or NDIS layer that most mobile devices just can't afford.
The most important point here - NDIS Packet Capturing is not supported for Windows Mobile. Closest you can get to a mobile platform with packet capture is Windows Embedded CE.
So, in order to capture network traffic for Windows Mobile you would need to develop your own NDIS driver framework. Not a small task.
Windows Mobile 使用Windows CE。
NDIS 在 Windows Mobile 上非常普遍,因此您可以编写中间驱动程序来捕获流量。
但是,它已经有 netlog 可以为您完成工作: http:// msdn.microsoft.com/en-us/library/ms883126.aspx
Windows Mobile uses Windows CE.
NDIS is very much present on Windows Mobile, so you can write an intermediate driver to capture traffic.
However, it already has netlog which should do the work for you: http://msdn.microsoft.com/en-us/library/ms883126.aspx