Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

One of the first steps in attacking a computer is to see which network ports are open. It is also an important step in network

One of the first steps in attacking a computer is to see which network ports are open. It is also an important step in network security, because a hacked machine often has extra ports that are open. This is especially true with a botnet or worm. The existence of an unexpectedly open

Were (you all) are going to write a simple port scanner.

Write a program, in python, that will:

take an IP address from the command line.

take a lower port number from the command line.

take an upper port number from the command line.

It will then try to connect the (IP,port) for all ports between (and including) the lower port and the higher port numbers. It will log those ports that were successfully connected. Remember to disconnect if there was a successful connection. It can just print this information to stdout.

./scanner.py 127.0.0.1 80 2000

port 80 is open

port 443 is open

These ports might not be open on localhost (127.0.0.1) on snowball. So dont get upset if your output is different.

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

Database Concepts

Authors: David M Kroenke, David J Auer

6th Edition

0132742926, 978-0132742924

More Books

Students also viewed these Databases questions

Question

Describe the factors influencing of performance appraisal.

Answered: 1 week ago

Question

What is quality of work life ?

Answered: 1 week ago

Question

13-4 What are alternative methods for building information systems?

Answered: 1 week ago