Skip to content

An educational tool to scan for SIGHASH_SINGLE vulnerable addresses on the blockchain using bitcoin-core

Notifications You must be signed in to change notification settings

MatanHamilis/bitcoin-sighash-scan

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Bitcoin Scan Sighash

This tool is an educational source to learn more about Bitcoin's SIGHASH_SINGLE bug. You can read the whole post here

Purpose

This tool is intended to scan the blockchain for addresses vulnerable for the SIGHASH_SINGLE bug.

Requirements

To use this tool, you'll first have to run your own node of Bitcoin. If you already have one, move to the next step. Otherwise, follow the instruction from Bitcoin core's website. Notice it might take a while to synchronize your node. In the end of the process your Bitcoin node should be up and running.

Running

Use cargo build --release to build the program. Nest, use cargo run --release -- --help to list all options available. Currently three options are available:

  1. --address - To specify the address of your bitcoin node, typically it listens to RPC commands on http://127.0.0.1:8332.
  2. --bitcoin-dir - This is used to extract the credentials needed to access your bitcoin node.
  3. --log-file - If specified the output will be written to the given log file, otherwise will be written to stderr.

DISCLAIMER: I haven't tested this on anything but Linux, so feel free to open issues.

About

An educational tool to scan for SIGHASH_SINGLE vulnerable addresses on the blockchain using bitcoin-core

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages