The socket module in Python can be used to connect to network services running on remote ports. This recipe will demonstrate how to use Python sockets to acquire service banners in order to identify the services associated with open ports on a target system.