Snoop with Color

This program uses tcpdump to snoop for network traffic and colorizes its output using grep and user provided color codes on the command line.

Usage
python Application.py <inbound_color_code> <outbound_color_code>

Example
The following example will colorize output from 'tcpdump' with outbound traffic colored red, and inbound traffic colored blue.

python Application.py 34 31

This example produces the following output.
Image of example output

Foreground Color Codes
The following are just a few color codes to get you started.

In version 1.0, any single color code, supported by the user's terminal, can be specified as either of the command line arguments

Image of foreground colors


Note: For a full list of foreground, background and other color codes, I highly recommend Flozz' MISC >> bash:tip_colors_and_formatting.


Dependencies

  • Python 2.7