During a penetration test, you are tasked with writing a Python script that efficiently checks if certain services are running on multiple hosts. You decide to use a function that will attempt to connect to a user-defined port. Which built-in Python module should you import to create the socket objects necessary to establish network connections?
os
socket
struct
subprocess