0

I am running an ARP poisoning and defender code. But this is the output it always shows.

pcap_open_live(): enp0s8: You don't have permission to capture on that device (socket: Operation not permitted)

I looked online and tried add this code but it is not working

sudo groupadd pcap
sudo usermod -a -G pcap rishab
chgrp pcap /usr/sbin/tcpdump
chmod 750 /usr/sbin/tcpdump
setcap cap_net_raw,cap_net_admin=eip /usr/sbin/tcpdump

Can you tell me what I am doing wrong

I am using Ubuntu 20.04

rishab is my username on both the linux vmware

myresult

0 Answers0