def decrypt(key, iv, ciphertext):
        """
        Decrypt ciphered data (user / password) using the key previously found
        """
        cipher = DES3.new(key=key, mode=DES3.MODE_CBC, iv=iv)
        data = cipher.decrypt(ciphertext)
        nb = data[-1]
        try:
            return data[:-nb]
        except Exception:
            return data

        Decrypt ciphered data (user / password) using the key previously found
        
cme/protocols/smb/firefox.py