Project 01 / Development notes
Rastro.
A Python CLI for Nmap scans, reports, and snapshot comparison.
A project exploring network tooling and how to turn scan output into useful records.
The animated walkthrough launches Rastro, selects New scan, discovers and selects a target, runs a Detailed Service Scan, and saves a report and snapshot. All output is demonstration data.
The implementation.
Nmap handles discovery and scanning. Python parses the XML into host and service objects, then displays results or writes TXT and CSV reports.
Saved JSON snapshots record observations by IP address for later comparison.
Built with
- Python / Nmap / etree
- Scan execution and XML parsing
- EasyMenu3 / pick
- Main menu and target selection
- psutil / Rich
- Interface discovery and progress output
Why I built it.
I wanted to learn Python while bringing discovery, configurable scans, service identification, and reports into one structured CLI workflow.
V0.1 documents network observations. Broader diagnostics and security assessment are future goals.
Improvement findings.
A TCP connect scan of one test host took 144.77 seconds. With 999 ports filtered or unresponsive, Nmap spent most of that time waiting and retrying; XML parsing and reporting were not the main bottleneck.
I added Fast, Standard, and Detailed Service scan choices so the scan could match the task: a smaller port set for a quicker check, standard coverage, or additional service/version detection.
Fast mode took around 17 seconds on the same host by scanning fewer ports. The improvement was making scan depth configurable; these timings compare different port sets, not the same scan before and after a code optimisation. Detailed mode adds service/version detection rather than promising a shorter run.
Project scope.
Rastro V0.1.1 brings IPv4 discovery, target selection, TCP connect or SYN scanning, service identification, and TXT/CSV reports into a Python CLI.
Saved JSON snapshots support comparisons of host observations, open ports, and detected service versions within the same subnet and scan profile, including comparisons across both TCP methods.
The current scope is recording and comparing network observations. Broader diagnostics and security assessment remain future work; this release does not identify vulnerabilities.