Skip to content
Command Line STDOUT Colorer
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
screens
.gitignore
README.md
prisma.py
test.tcpdump

README.md

prisma

Command Line STDOUT Colorizer

Requirements

Prisma works on all platforms, Linux, OSX and Windows.

  • Python 2.7 (not tested with Python 3)
  • colorama

Installation

  • Clone the github repository - with a desktop client on Windows / OSX or via command line git clone https://github.com/Neo23x0/prisma
  • Install colorama Python module via sudo easy_install colorama or sudo pip install colorama

Quick Start

Just pipe command line output to prisma.py

cat /var/log/syslog | python ./prisma.py

or make it executable and place it in a binary folder in order to use it anywhere you want

chmod +x ./prisma.py
sudo cp prisma.py /usr/local/bin
cat /var/log/syslog | prisma.py

Usage

usage: prisma.py [-h] [-s string [string ...]] [-i] [-w seconds] [--debug]

Prisma - command line colorizer

optional arguments:
  -h, --help            show this help message and exit
  -s string [string ...]
                        Strings to highlight - separated with space 
                        (e.g. -s failed error)
  -i                    Case-insensitive search for strings
  -w seconds            Pause on string match (in seconds)
  --debug               Debug output

Use prisma to find certain string (here: 'error' and 'fail') in an output, be case-insensitive and wait 3 seconds on every match (see animated GIF below for a demo)

cat /var/log/messages | prisma.py -s error fail -i -w 3

Screenshots

System log file

Log File Output Colorized

Firewall Log

Log File Output Colorized

Strings output on malware sample

Log File Output Colorized

Tcpdump output

Log File Output Colorized

String match and wait option (animated GIF)

String match and wait option

You can’t perform that action at this time.