# Builds stigma and captures live, granting CAP_NET_RAW when a new build has lost it. live *args: cargo build getcap target/debug/stigma | grep -q cap_net_raw || sudo setcap cap_net_raw=eip target/debug/stigma target/debug/stigma live {{args}} # Opens a shell where anything you run can capture packets, across rebuilds. capture-shell: sudo setpriv --reuid=$(id -u) --regid=$(id -g) --init-groups --inh-caps=+net_raw --ambient-caps=+net_raw $SHELL