0% found this document useful (0 votes)
3 views3 pages

Nmap Automation Tool Documentation

The Nmap Simple Automation Tool is a Python-based utility that simplifies network scanning using Nmap by providing a command-line interface for users to select scan types and input target IP addresses. It includes features like port validation and various scanning options such as TCP, UDP, and comprehensive scans. This tool is particularly beneficial for beginners learning about network scanning.

Uploaded by

aw2767164
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
3 views3 pages

Nmap Automation Tool Documentation

The Nmap Simple Automation Tool is a Python-based utility that simplifies network scanning using Nmap by providing a command-line interface for users to select scan types and input target IP addresses. It includes features like port validation and various scanning options such as TCP, UDP, and comprehensive scans. This tool is particularly beneficial for beginners learning about network scanning.

Uploaded by

aw2767164
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

Nmap Simple Automation Tool Documentation

Nmap Automation Tool - Detailed Documentation

This script is a Python-based automation tool for Nmap, a powerful network scanning utility.

It provides a simple command-line interface for selecting different types of scans.

--- Code Breakdown ---

1. Imports and Initialization:

- `import time`: Used for creating delays to enhance UX.

- `import nmap`: Imports the python-nmap module to interact with Nmap.

- `import threading`: Imported for potential multithreading (not used in the current code).

2. Initial UI Output:

- Uses `time.sleep()` and `print()` to show a welcome banner and a scan options list.

3. Scan Type Selection:

- Prompts the user to select the type of scan from a predefined list (TCP, UDP, etc.).

4. IP Address Input:

- Asks the user to input the target IP address for scanning.

5. Port Validation Function:

- `validate_ports(port_input)`: Ensures the user-specified ports are valid. Accepts single ports, ranges,

multiple ports, or 'all'.

Page 1
Nmap Simple Automation Tool Documentation

6. Port Prompting:

- Only triggers if the scan type is not OS detection (type 13).

7. Block 1: TCP Scan (`type_scan == '1'`):

- Performs a full TCP connect scan (`-sT`).

- Displays open ports and services, with a warning if all specified ports are reported open.

8. Block 2: UDP Scan (`type_scan == '2'`):

- Uses `-sU` for UDP scan.

- Outputs UDP scan results and checks for open UDP ports.

9. Block 3: Comprehensive Scan (`type_scan == '3'`):

- Combines multiple options: `-sS`, `-sV`, `-O`, `-sC`, `-A` for a detailed analysis.

10. Block 4: SYN Scan (`type_scan == '4'`):

- A stealthy TCP SYN scan using `-sS`.

- Gathers port state and service info.

11. Block 5: Connect Scan (`type_scan == '5'`):

- Explicit full TCP connection scan using `-sT`.

- Outputs open TCP ports and services.

Note: Other scan types (6-13) are listed but not implemented yet.

--- Summary ---

This tool simplifies the process of running Nmap scans by guiding the user through input collection,

Page 2
Nmap Simple Automation Tool Documentation

port validation, and executing various scan commands. It's a useful utility for beginners learning about

network scanning.

Page 3

You might also like