Skip to content

Script to parse multiple Nmap .gnmap exports into various plain-text formats for easy analysis.

License

Notifications You must be signed in to change notification settings

ChrisTruncer/gnmap-parser

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Gnmap-Parser

Description

Gnmap-Parser takes multiple Nmap scans exported in greppable (.gnmap) format and parses them into various types of plain-text files for easy analysis.

Parsing Formats Include:

  • Alive Hosts List Based on ICMP Replies
  • Alive Hosts List Based on Open Ports
  • Host Type Lists Based on Open Ports
  • Simple TCP/UDP Ports Lists Showing Unique Open Ports Discovered Across All Hosts
  • Port Files In "[#]-[TCP/UDP].txt" Format Consisting of Ordered Hosts
  • CSV Style Port Matrices In "[HOST],[PROTOCOL],[PORT]" Format
  • Third-Party Tool Input File Formats (Currently: PeepingTom)

Usage

Supported Switches:

  • -g = Gather .gnmap files (faster but only finds files with .gnmap extension).
  • -gg = Heuristically gather .gnmap files (slower but finds files regardless of extension).
  • -p = Parse .gnmap files.

Limitations:

  • Gnmap-Parser will only parse *.gnmap files that are in the same directory that it resides. For this reason, the gather switches (-g) and (-gg) were implemented to copy .gnmap files from their known locations into the scripts working directory. Any path will work as Gnmap-Parser will traverse all subdirectories. For instance, providing a parent directory of "/" will traverse the entire root filesystem looking for *.gnmap files.

  • Gnmap-Parser currently only parses files that end with the .gnmap extension. If using the -oA switch of Nmap, these files will already be named with the correct extension. If specifying the -oG switch, be sure to append .gnmap to the filename or use the (-gg) switch.

About

Script to parse multiple Nmap .gnmap exports into various plain-text formats for easy analysis.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 100.0%