Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

python please nothing is working Test function simulate_scan( ) for output Test feedback simulate_scan() method output is incorrect. error message In network security, it is

python please nothing is working

Test function simulate_scan( ) for output Test feedback

simulate_scan() method output is incorrect. error message

In network security, it is important to understand port scanning. Hackers use tools to scan a network and determine if there are open ports and if they contain some sort of vulnerability. To scan ports, you first have to find active hosts on a network. Once you find active hosts and discover a list of IP addresses for those hosts, a port scan can be performed to gather information about open ports and analyze services running on those ports. A port scan is the process of sending packets to an active host's ports and learning details that can help you gain access to that host or to discover open vulnerabilities on your network.

Some common ports are: Port 20 - File Transfer Protocol or FTP Port 22 - Secure Shell protocol or SSH Port 23 - Telnet protocol for unencrypted transfer Port 80 - HyperText Transfer Protocol or HTTP Port 443 - HyperText Transfer Protocol Secure or HTTPS

The Well Known Ports are those from 0 through 1023

We are going to simulate a port scan by filling a list with 100 random port numbers. These values will be used as the keys in a dictionary where the values will be randomly generated integers 0 / 1. The 0 will be a closed port and a 1 will be an open port.

Your first TODO is to create a function called "create_host_IPs( )" that randomly generates a list of 10 IP addresses with 4 random octets values, concatenating the 4 values into a string and appending it to a host list. The function returns the generated host list. The random values can be limited to a range of 10 to 200

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Data Management Databases And Organizations

Authors: Richard T. Watson

6th Edition

1943153035, 978-1943153039

More Books

Students also viewed these Databases questions

Question

Define offboarding. Why is it important?

Answered: 1 week ago

Question

How does the concept of hegemony relate to culture?

Answered: 1 week ago