Skip to content

Python-based tool that scans for open TCP ports on a given IP address. It helps network administrators or security professionals identify open ports that could potentially expose services to threats. This tool can be used for basic network reconnaissance and to check the security of systems.

Notifications You must be signed in to change notification settings

ariansarathy/NetPort-Scanner

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🔍 NetPort Scanner

A Python-based TCP port scanner with multi-threaded scanning, detailed security reporting, and an optional Flask web interface.


Features

  • Multi-threaded scanning — configurable thread pool (default 200) for fast parallel scans
  • Banner grabbing — attempts to capture service banners from open ports
  • Security recommendations — per-service security advice for every open port
  • CSV & JSON export — export results for further analysis or record-keeping
  • Real-time CLI feedback — live progress bar + open port alerts as they're found
  • Flask web interface — browser-based GUI with live progress, results table, and export buttons

Installation

git clone https://github.com/yourname/netport-scanner.git
cd netport-scanner
pip install -r requirements.txt

Usage

CLI

# Basic scan (ports 1–1024)
python cli.py 192.168.1.1

# Custom range
python cli.py scanme.nmap.org --range 1-10000

# Export results
python cli.py example.com --export both --output my_scan

# Full options
python cli.py <host> --range 1-65535 --threads 300 --timeout 0.8 --export json

CLI Options:

Option Default Description
--range 1-1024 Port range (start-end)
--threads 200 Concurrent threads
--timeout 1.0 TCP timeout in seconds
--export (none) json, csv, or both
--output scan_results Output filename (no extension)

Web Interface

python app.py
# Open http://localhost:5000

The web UI lets you configure and run scans from a browser, watch live progress, and download reports.


Project Structure

netport-scanner/
├── scanner.py          # Core scanning engine (port scan, export logic)
├── cli.py              # Command-line interface
├── app.py              # Flask web application
├── templates/
│   └── index.html      # Web UI
├── reports/            # Auto-created; stores exported reports
└── requirements.txt

⚠️ Legal Notice

Only scan hosts you own or have explicit written permission to test. Unauthorized port scanning may be illegal in your jurisdiction.


License

MIT

About

Python-based tool that scans for open TCP ports on a given IP address. It helps network administrators or security professionals identify open ports that could potentially expose services to threats. This tool can be used for basic network reconnaissance and to check the security of systems.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •