PacketSniffer.NET is a .NET Core application for Network Packet Sniffering which will work on Windows, Linux and MacOS.
- Install the dotnet core 2.0 from https://www.microsoft.com/net/core
- Clone this repo
- Navigate to the project folder you prefer
- If you are running on Linux or macOS, run
gcc -shared -fPIC packetsniffer.c -o packetsniffer.so
first - If you are running under macOS, make sure you pass the correct interface name in line 66 of Programe.cs
- Run
dotnet run
as Administrator or as root - You can filter the packets in DataArrival function