示例#1
0
    def __init__(self,
                 id,
                 timestamp,
                 data,
                 type,
                 direction,
                 major,
                 minor,
                 requestmode,
                 pid,
                 status,
                 information,
                 cancel,
                 sizeIn,
                 sizeOut,
                 pattern=[]):
        AbstractMessage.__init__(self, id, timestamp, data, type, pattern)
        self.direction = direction
        self.major = major
        self.minor = minor
        self.requestmode = requestmode
        self.pid = pid
        self.status = status
        self.information = information
        self.cancel = cancel
        self.sizeIn = sizeIn
        self.sizeOut = sizeOut

        # create logger with the given configuration
        self.log = logging.getLogger('netzob.Common.Models.IRPMessage.py')
        #print "CALL Network "+str(self.getPattern())

        if len(self.pattern) == 1:
            self.pattern.insert(0, direction)
示例#2
0
    def __init__(self, id, timestamp, data, category, key, direction):
        AbstractMessage.__init__(self, id, timestamp, data, "IPC")

        self.category = category
        self.key = key
        self.direction = direction

        # create logger with the given configuration
        self.log = logging.getLogger('netzob.Common.Models.IPCMessage.py')
示例#3
0
    def __init__(self, id, timestamp, data, category, key, direction):
        AbstractMessage.__init__(self, id, timestamp, data, "IPC")

        self.category = category
        self.key = key
        self.direction = direction

        # create logger with the given configuration
        self.log = logging.getLogger('netzob.Common.Models.IPCMessage.py')
示例#4
0
    def __init__(self, id, timestamp, data, filename, creationDate, modificationDate, owner, size, lineNumber):
        AbstractMessage.__init__(self, id, timestamp, data, "File")
        self.filename = filename
        self.creationDate = creationDate
        self.modificationDate = modificationDate
        self.owner = owner
        self.size = size
        self.lineNumber = lineNumber

        # create logger with the given configuration
        self.log = logging.getLogger('netzob.Common.Models.FileMessage.py')
示例#5
0
    def __init__(self, id, timestamp, data, filename, creationDate,
                 modificationDate, owner, size, lineNumber):
        AbstractMessage.__init__(self, id, timestamp, data, "File")
        self.filename = filename
        self.creationDate = creationDate
        self.modificationDate = modificationDate
        self.owner = owner
        self.size = size
        self.lineNumber = lineNumber

        # create logger with the given configuration
        self.log = logging.getLogger('netzob.Common.Models.FileMessage.py')
示例#6
0
    def __init__(self, id, timestamp, data, ip_source, ip_destination, protocol, l4_source_port, l4_destination_port, pattern=[]):
        AbstractMessage.__init__(self, id, timestamp, data, "Network", pattern)
        self.ip_source = ip_source
        self.ip_destination = ip_destination
        self.protocol = protocol
        self.l4_source_port = l4_source_port
        self.l4_destination_port = l4_destination_port
        # create logger with the given configuration
        self.log = logging.getLogger('netzob.Common.Models.NetworkMessage.py')
        #print "CALL Network "+str(self.getPattern())

        if len(self.pattern) == 1:
            self.pattern.insert(0, ip_destination)
示例#7
0
    def __init__(self, id, timestamp, data, type, direction, major, minor, requestmode, pid, status, information, cancel, sizeIn, sizeOut, pattern=[]):
        AbstractMessage.__init__(self, id, timestamp, data, type, pattern)
        self.direction = direction
        self.major = major
        self.minor = minor
        self.requestmode = requestmode
        self.pid = pid
        self.status = status
        self.information = information
        self.cancel = cancel
        self.sizeIn = sizeIn
        self.sizeOut = sizeOut

        # create logger with the given configuration
        self.log = logging.getLogger('netzob.Common.Models.IRPMessage.py')
        #print "CALL Network "+str(self.getPattern())

        if len(self.pattern) == 1:
            self.pattern.insert(0, direction)
示例#8
0
 def __init__(self, id, timestamp, data):
     AbstractMessage.__init__(self, id, timestamp, data, "RAW")
     # create logger with the given configuration
     self.log = logging.getLogger('netzob.Common.Models.RAWMessage.py')
示例#9
0
 def __init__(self, id, timestamp, data):
     AbstractMessage.__init__(self, id, timestamp, data, "RAW")
     # create logger with the given configuration
     self.log = logging.getLogger('netzob.Common.Models.RAWMessage.py')