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 eth0 10.10.20.50 netmask 255.255.255.0

  • ifconfig 10.10.20.50 netmask 255.255.255.0

This question's topic:
CompTIA PenTest+ PT0-002 / 
Tools and Code Analysis
Your Score:

Check or uncheck an objective to set which questions you will receive.