-
-
Save keedi/1938322368b035540c38472a8beb502a to your computer and use it in GitHub Desktop.
Listing All Passwords Stored in Gnome Keyring http://blog.schmichael.com/2008/10/30/listing-all-passwords-stored-in-gnome-keyring/
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
import pygtk | |
pygtk.require('2.0') | |
import gtk # sets app name | |
import gnomekeyring | |
def hack(): | |
for keyring in gnomekeyring.list_keyring_names_sync(): | |
for id in gnomekeyring.list_item_ids_sync(keyring): | |
item = gnomekeyring.item_get_info_sync(keyring, id) | |
print '[%s] %s = %s' % ( | |
keyring, item.get_display_name(), item.get_secret()) | |
else: | |
if len(gnomekeyring.list_item_ids_sync(keyring)) == 0: | |
print '[%s] --empty--' % keyring | |
if __name__ == '__main__': | |
hack() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[default] Local password for user root = ******* | |
[login] michael.schurter@Work = ******* | |
[login] Google Account = ******* | |
[login] Passphrase for wireless network 2WIRE939 = ******* | |
[login] Unlock password for default keyring = ******* | |
[login] [email protected] = ******* | |
[session] --empty-- |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment