Nmap: [Feature Request] Add the colour output from Zenmap into nmap (New flag? --color)

Created on 21 Dec 2016  路  4Comments  路  Source: nmap/nmap

I would like to see a new option/flag in nmap to give the command line and same colour display output thats in the in the GUI Zenmap.

By doing something like nmap 192.168.0/24 --colour (or nmap 192.168.0/24 --color!) it will also display the same colours on the same fields if you were to use Zenmap.


Left side: Just white text
Right side: black text, with blue & green and white highlights.

Ref: https://github.com/nmap/nmap/blob/master/zenmap/share/zenmap/config/zenmap.conf

Most helpful comment

For the time being, I'm using grc (https://github.com/garabik/grc) to give nmap a splash of colour

$ grc nmap -v localhost

All 4 comments

I'm also interested in this feature! There are cw (https://cwrapper.sourceforge.net) and cope (https://github.com/yogan/cope) wrapper available but they don't work for me.

It is far too much work to use ANSI-sequences. In some of my own programs, I've used a home-brew C_printf() with Win-console + ANSI-sequence support. E.g. a

C_printf ("~4Hello ~2world~0.\n");

will print to stdout with Hello mapped to colour 4 and and world mapped to colour 2:
hello-world

I'm also very interested in this. I'd love for the text output to be easier to read.

For the time being, I'm using grc (https://github.com/garabik/grc) to give nmap a splash of colour

$ grc nmap -v localhost
Was this page helpful?
0 / 5 - 0 ratings

Related issues

buden picture buden  路  5Comments

ColeBracew picture ColeBracew  路  3Comments

jungle-boogie picture jungle-boogie  路  4Comments

dmiller-nmap picture dmiller-nmap  路  3Comments

fyodor picture fyodor  路  4Comments