Question: Your task is to write a Python program that should test the given host and it should generate a list of all the TCP Open

Your task is to write a Python program that should test the given host and it should generate a list of all the TCP Open ports within the range of 1 to 1025. You are required to accomplish this task by using standard Pythons socket library. Following are the functional requirements: 1. On execution of program system should prompt Enter a host to scan. User will provide a host name 2. System should look for all the ports between the range of 1 to 1025 3. If the Ports is open it should create a file and add an entry for port number 4. In case of any exception for instance host is not available, host name could not be resolved or due to any other error you need to write that exception into same file 5. You also need to record starting and ending date and time at the beginning and ending of file accordingly. It should also show the total time it took in port scanning process Following is the Environment: You have a local ubuntu machine and you need to develop and execute port scanning program on this machine

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 Databases Questions!