Linux 的 Windows 过滤平台等效吗?
我不止一次地选择自己想要一种简单的方法来在我的局域网中动态编辑数据包,所以我认为是时候制造一些“机器”来完成这项工作了。我认为粮食计划署会完全满足我的需要。
我不仅想过滤和编辑我的程序将运行的计算机上的数据包,而且我还想对 LAN 中的一台机器进行 ARP 毒害并编辑通过另一台机器路由的数据包(我不知道我是否可以这样做这是使用粮食计划署;这是我问题的另一部分,如果有人知道,请告诉我)。
问题是我无法下载 Visual C++,并且我需要它来使用 WFP(它是 Windows SDK 的一部分,对于 MinGW 并不完全可用;自己移植标头通常很令人头疼)。我也只是想知道如何在 Linux 中做到这一点。
有人吗?
(ServerFault.com 上的补充问题:https://serverfault。 com/questions/74915/best-way-to-live-edit-packets-from-another-computer)
More than once I picked myself wanting to have an easy way to edit packets on-the-fly in my LAN, so I thought it was time for me to make some "machinery" to do the job. I think WFP would do exactly what I needed.
Not only I wanted to filter and edit packets off the computer my program would be running, but I would also like to ARP poison a machine in my LAN and edit the packets routed through the other one (I don't know wheter I could do this using WFP; that's another part of my question. If anyone knows, please tell me).
The problem is I'm not being able to download Visual C++, and I need it to use the WFP (it's part of the Windows SDK, which is not fully available for MinGW; porting the headers myself is generally a headache). Also I simply would like to know how to do that in Linux.
Anyone?
(Complementary question at ServerFault.com: https://serverfault.com/questions/74915/best-way-to-live-edit-packets-from-another-computer)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
在Linux中捕获和存储数据包的最常见方法是通过libpcap。您可以使用标准套接字发送数据包或通用库(boost ::asio)。
您可以使用 wireshark 完成相同的操作。我相信wireshark将允许重放和/或注入。
至于 arp 中毒,您可能必须自己直接使用 arp 数据包来做到这一点。
The most common way to capture and store packets in linux is through libpcap. You can use standard sockets to send the packets or generic libraries (boost::asio).
You can accomplish the same using wireshark. I believe wireshark will allow replay and/or injection.
As far as arp poisoning, you will probably have to do that directly with arp packets yourself.