def __init__(self, pcapObj): """pcap = pcap file name""" Base.__init__(self) self.total = 0 self.p = pcapObj format = "%(filter)-40s %(total)10d\n" self.msg = stringFormatMessage(format=format)
def __init__(self, pcapObj): Base.__init__(self) self.exp = None self.p = pcapObj self.action = None self.doWordSearch = 0 format = "%(pattern)-10s %(proto)-5s %(source)-15s %(sport)-15s %(dest)-15s %(dport)-5s %(count)10s\n" self.msg = stringFormatMessage(format=format)
def __init__(self, filename): base.Base.__init__(self) self.filename = filename format = "\ tFile name: %(filename)s\n \ tNumber of packets: %(pktcount)d\n \ tFile size: %(fsize)d bytes \n \ tData size: %(dsize)d bytes \n \ tCapture duration: %(duration)s seconds \n \ tStart time: %(start)s \n \ tEnd time: %(end)s \n \ tData rate: %(bytes)s bytes/s \n \ tData rate: %(bits)s bits/s \n \ tAverage packet size: %(avg)s bytes \n \ " self.msg = stringFormatMessage(format=format)
def __init__(self, filename): base.Base.__init__(self) self.filename = filename format = "\ \tFile name: %(filename)s\n \ \tNumber of packets: %(pktcount)d\n \ \tFile size: %(fsize)d bytes \n \ \tData size: %(dsize)d bytes \n \ \tCapture duration: %(duration)s seconds \n \ \tStart time: %(start)s \n \ \tEnd time: %(end)s \n \ \tData rate: %(bytes)s bytes/s \n \ \tData rate: %(bits)s bits/s \n \ \tAverage packet size: %(avg)s bytes \n \ " self.msg = stringFormatMessage(format=format)
def __init__(self): Base.__init__(self) self.results = {} self.words = [] format = "%(word)-10s %(proto)-5s %(source)-17s %(dest)-17s %(dport)-7s %(count)10s\n" self.msg = stringFormatMessage(format=format)