A Rust application that uses the pcap library to detect DNS tunneling attacks in network traffic.
Before building the application, you need to install the pcap library dependencies for your operating system:
- Install Npcap
- Download the Npcap SDK
- Add the SDK's
/Libor/Lib/x64folder to your LIB environment variable
Install the libraries and header files for the libpcap library:
-
On Debian-based distributions:
sudo apt-get install libpcap-dev -
On Fedora:
sudo dnf install libpcap-devel
Note: If not running as root, you need to set capabilities:
sudo setcap cap_net_raw,cap_net_admin=eip path/to/dns_tunneling_detection
libpcap should be installed on macOS by default.