(self)
return True
Initialize the sniffer
Initialize the sniffer
Initialize the sniffer
def initialize(self):
        """Initialize the sniffer"""
        self.sniff_filter = "tcp and dst port %s and src %s" % \
                                        (self.config['port'].value,
                                         self.config['target'].value)
        self.run()
        util.Msg("Running HTTP sniffer...")
        return True
def initialize ( self ) : self . sniff_filter = "tcp and dst port %s and src %s" % ( self . config [ 'port' ] . value , self . config [ 'target' ] . value ) self . run ( ) util . Msg ( "Running HTTP sniffer..." ) return True