re4lfl0w / prisma

Command Line STDOUT Colorer

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

Command Line STDOUT Colorer


Languages

Language:Python 100.0%