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?
ifconfig 10.10.20.50 netmask 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
ipconfig /set address 'Local Area Connection' static 10.10.20.50 255.255.255.0