🎖️🏵️ Memorial Weekend Sale — 30% off🏵️🎖️

1 day, 2 hours remaining!
CompTIA Study Materials
AWS Study Materials
AWS Certified Developer Associate AWS Certified Developer Associate
AWS Certified Developer Associate DVA-C02
AWS Certified Solutions Architect Associate AWS Certified Solutions Architect Associate
AWS Certified Solutions Architect Associate SAA-C03
AWS Cloud Practitioner AWS Cloud Practitioner
AWS Cloud Practitioner CLF-C02
Microsoft Study Materials
Microsoft Azure Fundamentals Microsoft Azure Fundamentals
Microsoft Azure Fundamentals AZ-900

Free 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?

  • subprocess

  • struct

  • socket

  • os

This question is for objective:
Tools and Code Analysis
Your Score:
Tools and Code Analysis
Information Gathering and Vulnerability Scanning
Attacks and Exploits
Reporting and Communication
Planning and Scoping