(self)
return True
Initialize sniffer
Initialize sniffer
Initialize sniffer
def initialize(self):
        """Initialize sniffer"""
        self.sniff_filter = "tcp and (port 3306 or port 5432) and " \
                            "(src %s or dst %s)" % (self.config['target'].value,
                                                    self.config['target'].value)
        self.run()
        return True
def initialize ( self ) : self . sniff_filter = "tcp and (port 3306 or port 5432) and " "(src %s or dst %s)" % ( self . config [ 'target' ] . value , self . config [ 'target' ] . value ) self . run ( ) return True