Skip to content

Instantly share code, notes, and snippets.

@thewhiteh4t
Created April 22, 2025 03:02
Show Gist options
  • Select an option

  • Save thewhiteh4t/c10648a80d531de3e0ea195f1fbfa9c8 to your computer and use it in GitHub Desktop.

Select an option

Save thewhiteh4t/c10648a80d531de3e0ea195f1fbfa9c8 to your computer and use it in GitHub Desktop.
Simple python script to decrypt and read creds in terminal
#!/usr/bin/env python3
# https://github.com/libkeepass/pykeepass
# pip install pykeepass
from pykeepass import PyKeePass
kp = PyKeePass('Logins.kdbx', password='<ENTER PASSWORD>')
for entry in kp.entries:
print(f'[+] Title : {entry.title}')
print(f'[+] URL : {entry.url}')
print(f'[+] Notes : {entry.notes}')
print(f'[+] Tags : {entry.tags}')
print(f'[+] User : {entry.username}')
print(f'[+] Pass : {entry.password}')
print('-' * 40)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment