(self, entry, pkt)
Takes an entry from purgatory and sticks it into
            the actual password cache if it doesn't exist.
            @param entry is a tuple of (username,password,destination:port)
            @pkt is the received packet
Takes an entry from purgatory and sticks it into
            the actual password cache if it doesn't exist.
Takes an entry from purgatory and sticks it into the actual password cache if it doesn t exist .
def add_account_pw(self, entry, pkt):
        """ Takes an entry from purgatory and sticks it into
            the actual password cache if it doesn't exist.
            @param entry is a tuple of (username,password,destination:port)
            @pkt is the received packet
        """
        host = pkt[IP].dst
        if host in self.passwords.keys():
            if not entry in self.passwords[host]:
                self.passwords[host].append(entry)
        else:
            self.passwords[host] = [entry]

        # update database
        self._dbcredentials(entry[0], entry[1],
                        entry[2].split(':')[0], self.config['target'].value)
def add_account_pw ( self , entry , pkt ) : host = pkt [ IP ] . dst if host in self . passwords . keys ( ) : if not entry in self . passwords [ host ] : self . passwords [ host ] . append ( entry ) else : self . passwords [ host ] = [ entry ] # update database self . _dbcredentials ( entry [ 0 ] , entry [ 1 ] , entry [ 2 ] . split ( ':' ) [ 0 ] , self . config [ 'target' ] . value )