CompTIA Study Materials
AWS Study Materials
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 need to script a change to the IP address of your testing machine to match a new target subnet for further exploration. Which script accomplishes this task while also verifying that the new IP address was correctly assigned?

  • ipconfig /set address 'Local Area Connection' static 10.10.20.50 255.255.255.0

  • ifconfig eth0 10.10.20.50 netmask 255.255.255.0 && ifconfig eth0 | grep '10.10.20.50'

  • ifconfig 10.10.20.50 netmask 255.255.255.0

  • ifconfig eth0 10.10.20.50 netmask 255.255.255.0

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