Skip to content

Instantly share code, notes, and snippets.

View tanprathan's full-sized avatar

Prathan Phongthiproek tanprathan

View GitHub Profile
@ErbaZZ
ErbaZZ / gnmap2banner.sh
Last active July 10, 2020 12:33
gnmap2banner.sh - Find "http" or any specified service type in .gnmap file and convert into "IP:PORT:PROTOCOL:SERVICE:BANNER" format
#!/bin/bash
# Name: gnmap2banner.sh
# Purpose: Search for a specific service type from gnmap file and
# prints out the result in "IP:Port:Service:Banner" format
# Usage: ./gnmap2banner.sh nmap_result.gnmap [service]
# Author: Weerawat Pawanawiwat <ErbaZZ>
file=$1
service="http"