Skip to content

Instantly share code, notes, and snippets.

@gbossert
Created April 1, 2016 09:57
Show Gist options
  • Save gbossert/e9debed0e090cfe275aed0cc6a7a815c to your computer and use it in GitHub Desktop.
Save gbossert/e9debed0e090cfe275aed0cc6a7a815c to your computer and use it in GitHub Desktop.
from netzob.all import *
m1 = RawMessage("field0field1")
m2 = RawMessage("field0field1")
f0 = Field(Raw(nbBytes=6))
f1 = Field(Raw(nbBytes=6))
s = Symbol(fields=[f0, f1])
s.messages = [m1, m2]
print s
# Field | Field
# -------- | --------
# 'field0' | 'field1'
# 'field0' | 'field1'
# -------- | --------
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment