In this problem you must program a simple TCP Service Scanner. Scanners are usually used to detect network services in the Local Area Network. You have to write a program that detects which services are available on a specific IP address range. For example, the machine 192.168.0.1 can hold a Web Server, an FTP server and a Mail Server; all these services are located on different Ports (80, 21, 25). The program must check a range of Ports and identify which service is available within a range of IP Addresses. After the application is finished, it has to write a report in a single text file, with the following format: IP Address Service 1 (Port) Service 2 (Port) IP Address Service 1 (Port) Unidentified services can be named as: Unknown Service. The application should receive 4 parameters: Start IPAddress, End IPAddress, Start Port, End Port I need to continue this Execution and report below - please let me know Execution Example python3 TCPServiceScanner 192.168.0.1 192.168.0.254 1 1024 Checking…192.168.0.1 3 services Checking…192.168.0.2 1 service Report written: report.txt Report Example 192.168.0.1 FTP Server (21) Web Server (80) SSH Server (22) 192.168.0.2 FTP Server (2) … … End of File
1 Problem
In this problem you must
network services in the Local Area Network. You have to write a program that detects which services are
available on a specific IP address range. For example, the machine 192.168.0.1 can hold a Web Server, an
FTP server and a Mail Server; all these services are located on different Ports (80, 21, 25). The program
must check a range of Ports and identify which service is available within a range of IP Addresses. After
the application is finished, it has to write a report in a single text file, with the following format:
IP Address
Service 1 (Port)
Service 2 (Port)
IP Address
Service 1 (Port)
Unidentified services can be named as: Unknown Service. The application should receive 4 parameters:
Start IPAddress, End IPAddress, Start Port, End Port
I need to continue this Execution and report below - please let me know
Execution Example
python3 TCPServiceScanner 192.168.0.1 192.168.0.254 1 1024
Checking…192.168.0.1
3 services
Checking…192.168.0.2
1 service
Report written: report.txt
Report Example
192.168.0.1
FTP Server (21)
Web Server (80)
SSH Server (22)
192.168.0.2
FTP Server (2)
…
…
End of File
![](/static/compass_v2/shared-icons/check-mark.png)
Step by step
Solved in 4 steps
![Blurred answer](/static/compass_v2/solution-images/blurred-answer.jpg)
![Database System Concepts](https://www.bartleby.com/isbn_cover_images/9780078022159/9780078022159_smallCoverImage.jpg)
![Starting Out with Python (4th Edition)](https://www.bartleby.com/isbn_cover_images/9780134444321/9780134444321_smallCoverImage.gif)
![Digital Fundamentals (11th Edition)](https://www.bartleby.com/isbn_cover_images/9780132737968/9780132737968_smallCoverImage.gif)
![Database System Concepts](https://www.bartleby.com/isbn_cover_images/9780078022159/9780078022159_smallCoverImage.jpg)
![Starting Out with Python (4th Edition)](https://www.bartleby.com/isbn_cover_images/9780134444321/9780134444321_smallCoverImage.gif)
![Digital Fundamentals (11th Edition)](https://www.bartleby.com/isbn_cover_images/9780132737968/9780132737968_smallCoverImage.gif)
![C How to Program (8th Edition)](https://www.bartleby.com/isbn_cover_images/9780133976892/9780133976892_smallCoverImage.gif)
![Database Systems: Design, Implementation, & Manag…](https://www.bartleby.com/isbn_cover_images/9781337627900/9781337627900_smallCoverImage.gif)
![Programmable Logic Controllers](https://www.bartleby.com/isbn_cover_images/9780073373843/9780073373843_smallCoverImage.gif)