Question: Write a function, find _ vulnerable _ machines, that searches for machines in the 1 0 . 1 3 . 4 . 0 / 2
Write a function, findvulnerablemachines, that searches for machines in the
subnet and outputs two files, opensshlog and opentelnet.log These files should contain a list of IPs that correspond to machines that have open ssh and open telnet ports, respectively.
This function will probably take minutes to run in its entirety over the whole list of subnet IPs, but you can test your portchecking logic on two known IPs before having your script loop over all the IPs in the subnet. For testing SSH your VM IP has an open SSH port. For testing telnet, has an open telnet port
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
