Skip to content

nickpegg/tcpdump-tunes

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 

Tcpdump Tunes

Think tcpdump is too boring? Put some music to your packets!

Takes tcpdump human output via stdin, spits out a MIDI file to stdout.

This is a terrible hack. It's mostly interesting with TCP traffic.

Installation

  1. Clone this repo
  2. Install python-midi from here: https://github.com/vishnubob/python-midi/
  3. Enjoy some sweet jams

Usage

tcpdump -n -c 100 | ./tcpdump_tunes.py | timidity -

  • The -n option is required since domain lookups are slow and my regex is lazy.
  • The -c option is required since the MIDI file can't be created until all notes (packets) are accounted for

Credits

Thanks to Ryan O'Hara for the idea

About

Think tcpdump is too boring? Put some music to your packets!

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages