Technical requirements
Before you start reading this chapter, you should know the basics of Python programming and have some basic knowledge about the HTTP protocol. We will work with Python version 3.7, available at www.python.org/downloads.
The examples and source code for this chapter are available in the GitHub repository at https://github.com/PacktPublishing/Mastering-Python-for-Networking-and-Security-Second-Edition.
Check out the following video to see the Code in Action:
This chapter requires the installation of the python-nmap
module. You can use your operating system's package management tool to install it.
Here's a quick how-to on installing this module in a Debian-based Linux operating system with Python 3, using the following commands:
sudo apt-get install python3 sudo apt-get install python3-setuptools sudo pip3 install python-nmap