I have written a python script that uses from scapy.all import * and the sniff() function requires elevated privilege, so when I run python3 scapyScript.py I receive the error PermissionError: [Errno 1] Operation not permitted which makes sense.
However, when I run sudo python3 scapyScript.py I receive ModuleNotFoundError: No module named 'scapy'.
I believe it's because I didn't install scapy using sudo access, but when I attempt to sudo pip3 install scapy it says there is no recognized command.
I can't seem to find anything about this specifically, does anybody have any ideas?
I am using Debian 9.3.0-10 distro.
Thank you for your time.