Exemplo n.º 1
0
    def __init__(self, config, name=None):
        self.logger = logging.getLogger(__name__)

        Sink.__init__(self, name=name)

        self.csv_file = config.output_file
        self.csv_writer = None

        if self.csv_file is not None:
            self.csv_writer = writer(self.csv_file, delimiter=";")

        self.logger.info("CSV exporter initialised")
Exemplo n.º 2
0
 def __init__(self, iface=None, name=None):
     Sink.__init__(self, name=name)
     if iface is None:
         iface = conf.iface
     self.iface = iface
Exemplo n.º 3
0
 def __init__(self, fname, name=None):
     Sink.__init__(self, name=name)
     self.f = PcapWriter(fname)
Exemplo n.º 4
0
 def __init__(self, iface=None, name=None):
     Sink.__init__(self, name=name)
     if iface is None:
         iface = conf.iface
     self.iface = iface
Exemplo n.º 5
0
 def __init__(self, fname, name=None):
     Sink.__init__(self, name=name)
     self.f = PcapWriter(fname)
Exemplo n.º 6
0
    def __init__(self):
        self.logger = logging.getLogger(__name__)

        Sink.__init__(self)

        self.logger.info("Console initialised")
Exemplo n.º 7
0
 def __init__(self, fname, name=None, linktype=None):
     Sink.__init__(self, name=name)
     self.fname = fname
     self.f = None
     self.linktype = linktype
Exemplo n.º 8
0
 def __init__(self, fname, name=None, linktype=None):
     # type: (str, Optional[str], Optional[int]) -> None
     Sink.__init__(self, name=name)
     self.fname = fname
     self.f = None  # type: Optional[PcapWriter]
     self.linktype = linktype
Exemplo n.º 9
0
 def __init__(self, iface=None, name=None):
     # type: (Optional[_GlobInterfaceType], Optional[str]) -> None
     Sink.__init__(self, name=name)
     if iface is None:
         iface = conf.iface
     self.iface = iface