Skip to content

Instantly share code, notes, and snippets.

@Bobbias
Created May 4, 2012 07:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Bobbias/2592906 to your computer and use it in GitHub Desktop.
Save Bobbias/2592906 to your computer and use it in GitHub Desktop.
output looks like this:
F
A
3
G
5
D
etc.
import matplotlib.pyplot as plt
import numpy as np
import re
import string
from bitstring import BitStream, BitArray
in_file = open("dump.log", "r")
for data in in_file.read():
b = BitStream(bytes=data)
print b.bytes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment