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

后端 未结 2 740
被撕碎了的回忆
被撕碎了的回忆 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.

提交回复
热议问题