← All Kali Issues
Python

Scapy sniff permission

P Permission High

🔴 Error Message

OSError: Operation not permitted when sniffing

📖 What This Means

Scapy needs root for packet capture.

🔧 Step-by-Step Fix

  1. Run as root: sudo python3 script.py
  2. Or set capabilities: sudo setcap cap_net_raw+ep /usr/bin/python3
  3. Use: scapy as root