Skip to content

Required dependencies

Giuliano Bellini s294739 edited this page Mar 29, 2024 · 7 revisions

Are you ready to start using Sniffnet?
First of all we have to make sure your environment is correctly set up — no worries, this will take at most 5 minutes.

Depending on your operating system, you may need to install some dependencies to run the application:

Windows dependencies 
  • Install Npcap, making sure to check the box Install Npcap in WinPcap API-compatible Mode during the installation.

  • Download the Npcap SDK.

  • Add the SDK's /Lib/x64 (or /Lib) folder to your LIB environment variable.

Note

If you just need to run the app, perform only the first step (second and third steps are required only for the build).

Linux dependencies 
  • On Debian-based distributions:
    • libpcap-dev
    • libasound2-dev
    • libfontconfig1-dev
    • libgtk-3-dev
  • On RPM-based distributions:
    • libpcap-devel
    • alsa-lib-devel
    • fontconfig-devel
    • gtk3-devel

Note

If you just need to run the app, the -dev / -devel part of the dependencies is not needed (it's required only for the build).

Note that if you are not running as root, you need to set capabilities to inspect a network adapter:

sudo setcap cap_net_raw,cap_net_admin=eip <your/Sniffnet/executable/path>

Alternatively, you can run the app with sudo privileges:

sudo sniffnet
MacOS dependencies 

MacOS natively has all the dependencies you need to build and run Sniffnet!
However, remember to run the app with administrator privileges: this is needed to analyze the activity of your network device.