Skip to content

Instantly share code, notes, and snippets.

View nandandoloxz's full-sized avatar

nandandoloxz nandandoloxz

  • https://debank.com/profile/0xed62002bb7697c12d1f7fb6c7d98dd2fd995b618
View GitHub Profile
@benjamin-m-hodgson
benjamin-m-hodgson / Brute Bitcoin Vanity Address.py
Last active September 10, 2018 14:22
Python script that prompts the user for alphanumeric input and then uses the Bitcoin Core testnet to generate addresses until one is generated that contains the user input.
import sys
import subprocess
import os
import time
'''
@author Ben Hodgson
Python script to generate addresses using the Bitcoin core test
client until the user inputted text is present within the address.
Example call in Windows PowerShell:
@nlitsme
nlitsme / dumpwallet.py
Last active February 22, 2022 13:28
create readable hex dump of a bitcoin, litecoin, etc wallet.dat
from bsddb.db import *
import sys
import struct
# by Willem Hengeveld <itsme@xs4all.nl>
# usage: python dumpwallet path_to_your/wallet.dat
# note: you need to have the bsddb package installed
def getcompact(k, i):
b= ord(k[i]) ; i+=1
@nlitsme
nlitsme / ecdsa_demo.py
Last active April 9, 2024 16:46
python implementation of ecdsa calculations, demonstrating how to recover a private key from two signatures with identical 'r', and demonstrating how to find the public key from a signature and message, or from two signatures.
from __future__ import print_function, division
"""
By Willem Hengeveld <itsme@xs4all.nl>
ecdsa implementation in python
demonstrating several 'unconventional' calculations,
like finding a public key from a signature,
and finding a private key from 2 signatures with identical 'r'
"""