GithubHelp home page GithubHelp logo

matanhamilis / bitcoin-sighash-scan Goto Github PK

View Code? Open in Web Editor NEW
10.0 1.0 7.0 14 KB

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

Rust 100.00%

bitcoin-sighash-scan's Introduction

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.

bitcoin-sighash-scan's People

Contributors

cbergqvist avatar matanhamilis avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

bitcoin-sighash-scan's Issues

Can you help??

oot@alx-HP-Compaq-6005-Pro-SFF-PC:/bitcoin-sighash-scan# cargo run --release -- --address 127.0.0.1:8333 --bitcoin-dir /media/alx/1adab0fe-e853-430c-a1f2-652db4181aca/.bitcoind
Finished release [optimized] target(s) in 0.09s
Running target/release/bitcoin-scan-sighash --address '127.0.0.1:8333' --bitcoin-dir /media/alx/1adab0fe-e853-430c-a1f2-652db4181aca/.bitcoind
thread 'main' panicked at 'called Result::unwrap() on an Err value: Io(Os { code: 2, kind: NotFound, message: "No such file or directory" })', src/main.rs:56:50
note: run with RUST_BACKTRACE=1 environment variable to display a backtrace

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.