This CLI python script is designed to be used by security consultants, IT admins and network engineers to do two things, compare two Nmap XML files to create a spreadsheet that compares IPs, ports and services between the files, and create a markdown report using GPT.
The script prints the help page if no args are passed, or you can access with python nmap-analysis.py -h
python nmap-analysis.py compare -ff (--first-nmap-file) path/to/first.xml -lf (--last-nmap-file) path/to/second.xml python nmap-analysis.py gpt-report -gf (--gpt-nmap-file) path/to/nmap.xml -c (--context) "Your optional context here" venvgit clone https://github.com/yourusername/nmap-analysis-tool.git
cd nmap-analysis-tool 2. Create a Virtual Environment:
python3 -m venv venv .\venv\Scripts\activate Choosing between Debian vs Ubuntu is one of the most common decisions Linux administrators face…
Knowing how to Check Ubuntu Version details is essential for system administration, troubleshooting, and software…
Managing a Linux server becomes much safer when you Create Sudo User accounts instead of…
Managing software on Linux becomes much easier when you know how to List Installed Packages…
Introduction Variables are one of the most important basics of Bash scripting. A variable is…
Introduction Running a Bash script in Linux is a basic but important skill for anyone…