Question: Write a function, find _ vulnerable _ machines, that searches for machines in the 1 0 . 1 3 . 4 . 0 / 2

Write a function, find_vulnerable_machines, that searches for machines in the
10.13.4.0/24 subnet and outputs two files, open_ssh.log and open_telnet.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 10-20 minutes to run in its entirety over the whole list of subnet IPs, but you can test your port-checking 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, 10.13.4.4 has an open telnet port

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!