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 analyzing data exfiltrated from a target company’s employee directory. The data is formatted in a CSV file, which includes names, departments, and email addresses. Which of the following methods would be BEST to programmatically extract and display email addresses from each line, assuming the email address is the third value in each row?

  • Splitting each line at commas and selecting the third element of the resulting list

  • Counting the number of words in each line and using an if statement to find email addresses

  • Using a regular expression to match any text that follows two commas

  • Encrypting and decrypting each line to isolate the email addresses

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