Setting the capabilities to sniff on an interface with libpcap: Revision history

From AcrodusWiki

Diff selection: Mark the radio buttons of the revisions to compare and hit enter or the button at the bottom.
Legend: (cur) = difference with latest revision, (prev) = difference with preceding revision, m = minor edit.

2 April 2025

  • curprev 21:2921:29, 2 April 2025Alex talk contribs 767 bytes −19 No edit summary
  • curprev 21:2921:29, 2 April 2025Alex talk contribs 786 bytes +786 Created page with "So i did this in rust, however is the case for any language. This allows you to run a program as a non root user but have access to the interface for sniffing. This command sets the capabilities of the executable. It must have both cap_net_admin and cap_net_raw. <pre> sudo setcap cap_net_raw,cap_net_admin=+ep target/debug/rp2009_sniffer </pre> The code then also needs to set it? <pre> 11 caps::raise(None, caps::CapSet::Inheritable, caps::Capability::CAP_NET_A..."