How unspecific/nmap-tools works
This repository is a small toolkit of standalone Perl command-line utilities built around nmap scan output. The architecture is not a single application but a set of loosely coupled scripts that each operate on scan results and text logs.
At the center is the nmap-wrapper script. Its role is to invoke nmap, manage scanning of target IPs, and produce output in a form that the other tools can consume. In practice, this is the acquisition layer for the whole toolkit.
nmap-diff is the change-detection layer. It compares scan results over time and reports newly opened ports, making it the main “delta” analysis component. This is useful for spotting exposure changes between scans rather than inspecting raw results manually.
nmap-report is the aggregation/reporting layer. It generates lists of hosts with a specific port open, or groups of hosts by port or by all open ports. Its outputs are meant to be machine- or human-readable lists that can be piped into other command-line tools.
nmap-search is the query layer for historical scan logs. It searches log data for matches, acting as a text-oriented retrieval tool over the stored nmap results rather than re-running scans.
nmap-graph is the visualization-oriented component. Based on its name and placement in the toolkit, it likely transforms scan data into a graphable representation, complementing the reporting and search tools with a relationship-oriented view of hosts and ports.
The repository also includes nmap-oG-output.txt, which appears to be an example or sample output file in nmap’s grepable/output-oriented format. This suggests the tools are designed around plain-text parsing rather than a database or service backend.
The main data flow is linear and file-based: nmap-wrapper produces scan output, which is then fed into nmap-diff, nmap-search, nmap-report, and nmap-graph depending on the task. There is no indication of a central server, persistent application state, or API layer.
The primary architectural boundary is between raw network scanning and post-processing. nmap performs the active discovery, while the repo’s scripts consume text output and turn it into reports, comparisons, searches, or graphable data.
The runtime dependency is Perl, plus the external nmap binary. Because these are CLI tools, they are intended to be composed in shell pipelines and batch jobs rather than called as in-process modules.
Operationally, this toolkit is suited to scheduled or repeated scanning workflows. That makes scan history and output format consistency important, because the downstream tools depend on stable text artifacts rather than live integration with nmap.
Overall, the repository is best understood as a command-line analysis pipeline around nmap: scan, diff, search, report, and visualize. An architecture diagram should show these as separate utilities connected by files/streams, with nmap as the external scanning engine at the front of the pipeline.
Main entry points: nmap-wrapper.pl nmap-wrapper · nmap-oG-output.txt oG sample · nmap-report.pl nmap-report · nmap-diff.pl nmap-diff
Components 7
CLI tools
Standalone Perl utilities for scanning and post-processing
- nmap-wrapper · Invokes nmap and produces reusable scan output
nmap-wrapper/nmap-wrapper.pl - nmap-diff · Compares scans and reports newly opened ports
nmap-diff/nmap-diff.pl - nmap-report · Aggregates hosts and ports into lists and groups
nmap-report/nmap-report.pl - nmap-search · Queries historical scan logs for text matches
nmap-search/nmap-search.pl - nmap-graph · Transforms scan data into graph-oriented output
nmap-graph/nmap-graph.pl
Text data
Scan outputs and sample artifacts consumed by the tools
- oG sample · Example nmap text output used as a parsing reference
nmap-oG-output.txt
External engine
Non-repo runtime dependency
- nmap · External network scanning binary used by the wrapper
Connections 12
- nmap → nmap-wrapper: scan results · Wrapper runs the external scanner and captures its output
- nmap-wrapper → oG sample: writes · Produces text artifacts in a format the other tools can consume
- oG sample → nmap-diff: compare · Diff consumes saved scan output to detect changes over time
- oG sample → nmap-report: summarize · Report reads scan output to build host and port listings
- oG sample → nmap-search: search · Search queries historical scan logs and text artifacts
- oG sample → nmap-graph: visualize · Graph transforms scan data into relationship-oriented views
- nmap-wrapper → nmap-diff: feeds · New scans become inputs to delta analysis
- nmap-wrapper → nmap-report: feeds · Fresh scan output can be summarized directly
- nmap-wrapper → nmap-search: feeds · Generated logs are searchable by downstream tools
- nmap-wrapper → nmap-graph: feeds · Scan output can be converted into graphable data
- nmap-diff → nmap-report: changes · Reported port deltas can be incorporated into summaries
- nmap-search → nmap-report: matches · Search results can be piped into report-style workflows