CompTIA PenTest+ PT0-002 Practice Question
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?
struct
socket
subprocess
os