Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Virtualenv for root

Some of the commands of Scapy can be executed as a regular user, others require the elevated rights of the root user on Linux.

Therefore we create a Python virtual environment for the root user in the /opt/venv3 directory, we'll install scapy in this virtual environment and will use it when necessary.

sudo virtualenv /opt/venv3