https://github.com/zrainerzz/port-scanner
A simple Python-based port scanner using the nmap library. This tool scans specified target IP addresses within a given port range, identifying open ports for network security analysis. It provides color-coded output for better readability and is useful for network administrators and cybersecurity professionals.
https://github.com/zrainerzz/port-scanner
Last synced: about 1 year ago
JSON representation
A simple Python-based port scanner using the nmap library. This tool scans specified target IP addresses within a given port range, identifying open ports for network security analysis. It provides color-coded output for better readability and is useful for network administrators and cybersecurity professionals.
- Host: GitHub
- URL: https://github.com/zrainerzz/port-scanner
- Owner: zRainerzz
- License: mit
- Created: 2024-11-25T14:16:44.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-11-25T14:33:36.000Z (over 1 year ago)
- Last Synced: 2025-02-06T23:30:54.661Z (over 1 year ago)
- Language: Python
- Size: 4.88 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Port Scanner Tool
## Description
This Python-based port scanner leverages the `nmap` library to scan target IP addresses and identify open ports within a specified range. Designed for network security analysis, it provides color-coded output for better readability and quick insights.
## Features
- Scans a target IP for open ports in a specified range.
- Color-coded output for clear and organized results.
- Error handling for seamless user experience.
## Prerequisites
- Python 3.x installed.
- `nmap` module: Install it using `pip install python-nmap`.
- `nmap` application: Ensure it is installed and added to your system's PATH.
## Usage
1. Clone this repository or download the script.
2. Run the script with the following format:
```
python3 portscanner.py
```
3. Example:
```
python3 portscanner.py 192.168.1.1 1-100
```
## Output
- Displays open ports in the specified range.
- Errors and warnings are displayed in red for easy identification.
## License
This project is licensed under the MIT License. See the LICENSE file for more details.
## Disclaimer
This tool is intended for educational purposes only. Ensure you have permission before scanning any network. Misuse of this tool is strictly prohibited.