Skip to content

Instantly share code, notes, and snippets.

@Pr1meSuspec7
Created March 13, 2024 08:08
Show Gist options
  • Save Pr1meSuspec7/47e0dc751ee918c43d02bb1f522d88d1 to your computer and use it in GitHub Desktop.
Save Pr1meSuspec7/47e0dc751ee918c43d02bb1f522d88d1 to your computer and use it in GitHub Desktop.
EVE-NG | PNETLAB | TCPDUMP | Enable no-root users to run packet capture
#!/usr/bin/env bash
# This will let anyone who belongs to the 'pcap' group
# execute 'tcpdump'
sudo groupadd pcap
sudo usermod -a -G pcap $USER
sudo chgrp pcap /usr/sbin/tcpdump
sudo setcap cap_net_raw,cap_net_admin=eip /usr/sbin/tcpdump
sudo ln -s /usr/sbin/tcpdump /usr/bin/tcpdump
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment