/nmap2obsidian

A simple python script for converting gnmap files to Obsidian canvases

Primary LanguagePythonGNU General Public License v2.0GPL-2.0

nmap2obsidian

A simple python script for converting gnmap files to Obsidian canvases. Simply run nmap with the -oG (or -oA) argument to get a copy of the nmap scan in the greppable format (.gnmap). Give that gnmap file as input into this script and it'll spit out beautiful json representing that scan.

Useage

Generate Network Map Canvas

python3 nmap2canvas.py -i /path/to/scan.gnmap -o NewObsidianFile.canvas

Update Previously Generated Network Map Canvas

python3 nmap2canvas.py -i /path/to/secondScan.gnmap -o ExistingObsidianFile.canvas -u

This .canvas file can then be moved into your Obsidian vault and be used as a central hub for all your pentesting and networking notes!

Example Output

Sample Output

Future Work

This script was written in ~30 min while I was bored in class, so it has not been tested very well and doesn't support parsing out nmap script outputs or other advanced features. If you are using this and want some specific feature added open an issue and I should have time to fiddle with it more.

  • Fix OS detection display
  • Add switch to output to file instead of stdout
  • Add masscan support
  • Add update feature