How to sniff local outgoing network traffic in .NET without using PCap?

后端 未结 2 726
被撕碎了的回忆
被撕碎了的回忆 2020-12-30 07:45

I\'d like to somehow hook into the local system\'s network stack to capture outgoing network packets without using Winpcap. Unfortunately it tends to crash my system every n

相关标签:
2条回答
  • 2020-12-30 07:58

    I use smsniff from NIRSOFT. You need to be admin on the machine to sniff any traffic.

    http://www.nirsoft.net/utils/smsniff.html

    I have never seen .net used to sniff traffic. But maybe NetMon from Microsoft has a COM interface you call from .Net

    But as always you need to be admin to sniff traffic, since it is needed to put the NIC in promiscuous mode.

    0 讨论(0)
  • 2020-12-30 08:14

    What you want is the Network Monitor API. More here and here.

    0 讨论(0)
提交回复
热议问题