(self, usr, pswd, pkt)
return False
check if the username/password has already been printed
check if the username/password has already been printed
check if the username / password has already been printed
def is_discovered(self, usr, pswd, pkt):
        """ check if the username/password has already been printed
        """
        if pkt[IP].dst in self.passwords.keys():
            if usr in [x[0] for x in self.passwords[pkt[IP].dst]] and  \
                    pswd in [x[1] for x in self.passwords[pkt[IP].dst]]:
                return True
        return False
def is_discovered ( self , usr , pswd , pkt ) : if pkt [ IP ] . dst in self . passwords . keys ( ) : if usr in [ x [ 0 ] for x in self . passwords [ pkt [ IP ] . dst ] ] and pswd in [ x [ 1 ] for x in self . passwords [ pkt [ IP ] . dst ] ] : return True return False