I ran the following command:
sudo setcap cap_net_raw,cap_net_admin,cap_net_bind_service+eip `which nmap`
Now I'd like to add to my ~/.zshrc
a line that detects such settings and exports NMAP_PRIVILEGED=1
. How could I do that?
capabilitiesfileslinux
I ran the following command:
sudo setcap cap_net_raw,cap_net_admin,cap_net_bind_service+eip `which nmap`
Now I'd like to add to my ~/.zshrc
a line that detects such settings and exports NMAP_PRIVILEGED=1
. How could I do that?
Best Answer
Just use
getcap
: