Example #1
0
 def __init__(self, ID, name, project):
     AbstractSymbol.__init__(self, Symbol.TYPE)
     self.id = ID
     self.project = project
     self.messages = []
     self.field = Field.createDefaultField(self)
     self.field.setName(name)
     self.project = project
     self.pattern = None
Example #2
0
 def __init__(self, ID, name, project):
     AbstractSymbol.__init__(self, Symbol.TYPE)
     self.id = ID
     self.project = project
     self.messages = []
     self.field = Field.createDefaultField(self)
     self.field.setName(name)
     self.project = project
     self.pattern = None
Example #3
0
    def __init__(self, id=None):
        AbstractSymbol.__init__(self, "TrashSymbol")
        self.id = id
        if self.id is None:
            id = str(uuid.uuid4())
        self.name = "TrashSymbol"
        self.messages = []
        self.encodingFilters = []
        self.visualizationFilters = []

        # Interpretation attributes
        self.format = Format.HEX
        self.unitSize = UnitSize.NONE
        self.sign = Sign.UNSIGNED
        self.endianess = Endianess.BIG

        # Clean the symbol
        self.fields = [Field.createDefaultField()]
Example #4
0
    def __init__(self, id=None):
        AbstractSymbol.__init__(self, "TrashSymbol")
        self.id = id
        if self.id is None:
            id = str(uuid.uuid4())
        self.name = "TrashSymbol"
        self.messages = []
        self.encodingFilters = []
        self.visualizationFilters = []

        # Interpretation attributes
        self.format = Format.HEX
        self.unitSize = UnitSize.NONE
        self.sign = Sign.UNSIGNED
        self.endianess = Endianess.BIG

        # Clean the symbol
        self.fields = [Field.createDefaultField()]
Example #5
0
 def __init__(self, dictionaryEntry):
     AbstractSymbol.__init__(self, "DictionarySymbol")
     # create logger with the given configuration
     self.log = logging.getLogger('netzob.Common.MMSTD.Symbols.impl.DictionarySymbol.py')
     self.entry = dictionaryEntry
Example #6
0
 def __init__(self):
     AbstractSymbol.__init__(self, UnknownSymbol.TYPE)
     # create logger with the given configuration
     self.log = logging.getLogger(
         'netzob.Common.MMSTD.Symbols.impl.UnknownSymbol.py')
Example #7
0
 def __init__(self):
     AbstractSymbol.__init__(self, EmptySymbol.TYPE)
     # create logger with the given configuration
     self.log = logging.getLogger('netzob.Common.MMSTD.Symbols.impl.EmptySymbol.py')