Skip to content

Instantly share code, notes, and snippets.

@CohibAA
CohibAA / dumpwallet.py
Created April 2, 2023 21:29 — forked from shinnida220/dumpwallet.py
Tool for dumping the private keys out of a Bitcoin Core wallet file
#!/usr/bin/env python2
import sys
import struct
from bsddb.db import *
from hashlib import sha256
# Dumps the private keys from an unencrypted wallet.dat file.
# Inspired by pywallet.
# Run with Python 2.7.
# Donations: 34rHZwgXDnkKvrBAU2fJAhjySTTEFroekd.