Making a program that intercepts network traffic in Windows

后端 未结 3 1068
野的像风
野的像风 2021-02-09 22:37

Sort of what I\'m asking is \"how to make a software firewall for Windows,\" but something not so complex. I\'m surprised I can find so little when searching for this, only the

3条回答
  •  别跟我提以往
    2021-02-09 22:55

    The DIY way would be going in kernel mode, using filter-hook drivers (for Windows 2000-XP) or WFP Callout Drivers.

    If you want to let others do the dirty work in kernel-mode, the WinPcap driver/library sports lots of low-level network features, including the ones you need, that you can use from user-mode (notice that using WinPcap you can't drop packets).

提交回复
热议问题