Skip to content

Instantly share code, notes, and snippets.

@gbossert
Created February 17, 2016 09:08
Show Gist options
  • Save gbossert/0c5a94881e335fe19a23 to your computer and use it in GitHub Desktop.
Save gbossert/0c5a94881e335fe19a23 to your computer and use it in GitHub Desktop.
#!/usr/bin/env python
from netzob.all import *
# a list of raw bytes
data = [ "hello\x00\x11", "hello\x00\x12" ]
# convert data to a list of RawMessages
messages = [ RawMessage(d) for d in data ]
# create a symbol to handle messages
symbol = Symbol(messages = messages)
print symbol
# Field
# ---------------
# 'hello\x00\x11'
# 'hello\x00\x12'
# ---------------
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment