How maruthisarathchandra/port-scanner-and-vulnerability-detection works
This repository contains two command-line TCP port scanners: an interactive sequential version and a configurable threaded version. Both take a target and port range, probe ports, identify open services, and write a text report; the newer version also resolves the host first and optionally grabs banners and writes CSV. Source shows the newer version’s scan and reporting calls; the older version writes its report directly inside its entry point. No README documentation is present.
Main entry points: scanner2.0.py Configurable CLI · scanner.py Interactive CLI
Components 14
Command-line Scanning
- Configurable CLI
scanner2.0.py - Interactive CLI
scanner.py
Probe and Identification
- Host Resolution
scanner2.0.py - Port Probe
scanner2.0.py - Service Lookup
scanner2.0.py - Banner Grab
scanner2.0.py - Port Probe
scanner.py
Scan Reports
- Text Report
scanner2.0.py - CSV Report
scanner2.0.py - Text Report
scanner.py
Other components
- Operator
- Target Host
- TCP and DNS
- Report Files
Connections 17
- Operator → Configurable CLI: configures scan
- Operator → Interactive CLI: enters scan
- Configurable CLI → Host Resolution: resolves host
- Host Resolution → TCP and DNS: queries DNS
- Configurable CLI → Port Probe: dispatches probes
- Port Probe → TCP and DNS: connects TCP
- Port Probe → Service Lookup: looks up service
- Port Probe → Banner Grab: optionally grabs
- Banner Grab → TCP and DNS: reads banner
- Configurable CLI → Text Report: writes report
- Configurable CLI → CSV Report: optionally writes
- Text Report → Report Files: writes text
- CSV Report → Report Files: writes CSV
- Interactive CLI → Port Probe: scans sequentially
- Port Probe → TCP and DNS: connects TCP
- Interactive CLI → Text Report: writes results
- Text Report → Report Files: writes text