Examples and source code for this chapter are available in the GitHub repository in the chapter 5 folder: https://github.com/PacktPublishing/Mastering-Python-for-Networking-and-Security.
You will need to install a Python distribution on your local machine and have some basic knowledge about packets, capturing, and sniffing networks with tools such as Wireshark. It is also recommended to use a Unix distribution to facilitate the installation and use of scapy and the execution of commands.