Skip to content

Instantly share code, notes, and snippets.

@adamhotep
Forked from sygo/conf.hexdump
Last active August 29, 2015 14:14
Show Gist options
  • Save adamhotep/3a0cfb17f52bff8610dc to your computer and use it in GitHub Desktop.
Save adamhotep/3a0cfb17f52bff8610dc to your computer and use it in GitHub Desktop.
Generic Colouriser tweaks
# offset
regexp=^[0-9a-fA-F]{1,8}\b
colours=bold red
======
# Hex Bytes %_p
regexp=\|.+\|\s*$
colours=cyan
======
# Hex bytes
#regexp=([0-9a-fA-F]{1,2 })+
#colours=green
#======
# everything in brakets
regexp=\b00
colours=bold black
# starting Nmap
regexp=^Starting Nmap.*$
colours=bold black
======
# ip address
regexp=\b(?:[01]?\d\d?|2[0-4]\d|25[0-5])(?:\.[01]?\d\d?|2[0-4]\d|25[0-5]){3}\b
colours=magenta
======
# hostname
regexp=\s(\w[\w.-]*\w) \((?:(?:[01]?\d\d?|2[0-4]\d|25[0-5])(?:\.[01]?\d\d?|2[0-4]\d|25[0-5]){3}\b|not scanned)
colours=unchanged,bold yellow
count=once
======
# list header
#regexp=\b(?:PORT|STATE|SERVICE|REASON|VERSION)\b
regexp=^PORT\s.*$
colours=reverse
======
# open
regexp=\bopen\b
colours=dark green
count=once
======
# filtered
regexp=\bfiltered\b
colours=dark yellow
count=once
======
# closed
regexp=\bclosed\b(?! ports)
colours= dark red
count=once
======
# tcp n udp
regexp=/(?:tcp|udp)\b
colours=bold black
count=once
======
# device type
regexp=\bDevice type:
colours=cyan
======
# running
regexp=\bRunning\b:?
colours=cyan
======
# os details
regexp=\bOS details:
colours=cyan
======
# MAC
regexp=\bMAC Address:
colours=cyan
======
# network distance
regexp=\bNetwork Distance:
colours=cyan
======
# Service Info
regexp=\bService Info:
colours=cyan
======
# Agressive
regexp=\bAggressive OS guesses:
colours=cyan
======
# no exact match
regexp=\bNo exact OS matches for host\b
colours=magenta
# nmap command
(^|/)nmap\b(?!\S)
conf.nmap
# hexdump (two regexps solely for my parser)
(^|/)hd\b(?!\S)
conf.hexdump
(^|/)hexdump\b(?!\S)
conf.hexdump
# traceroute command (/etc/grc.conf's regex inexplicably fails for me)
(^|/)traceroute6?\b(?!\S)
conf.traceroute
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment