How do I hook the TCP stack in Windows to sniff and modify packets?

后端 未结 7 1277
没有蜡笔的小新
没有蜡笔的小新 2021-01-31 22:44

I\'d like to write a packet sniffer and editor for Windows. I want to able to see the contents of all packets entering and leaving my system and possibly modify them. Any lang

7条回答
  •  陌清茗
    陌清茗 (楼主)
    2021-01-31 23:16

    I'm pretty sure you'd need to write a filter driver. http://en.wikipedia.org/wiki/Filter_driver I don't know much more than that :). It would definitely be a C/C++ Win32 app and you'd likely being doing some kernel side work. Start by downloading the DDK and finding some of the sample filter drivers.

    If you just want to monitor what goes in and out of IIS, consider an ISAPI filter. Still C/C++ in Win32, but relatively easier than writing a device driver.

提交回复
热议问题