Skip to content

Instantly share code, notes, and snippets.

@Bobbias
Created May 4, 2012 14:53
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/2595264 to your computer and use it in GitHub Desktop.
Save Bobbias/2595264 to your computer and use it in GitHub Desktop.
import matplotlib.pyplot as plt
import numpy as np
import re
import string
from bitstring import BitStream, BitArray
from construct import *
in_file = open("dump.bin", "rb")
file_bytes = in_file.read()
s = structure
c = GreedyRepeater(SBInt16("foo"))
parsed = c.parse(file_bytes)
print parsed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment