Created
February 17, 2016 09:08
-
-
Save gbossert/0c5a94881e335fe19a23 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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