Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/naboojarjar/rszscannervulnerability

Transactions Scanner for RSZ Vulnerability For perform the Random vulnerability Recovering Bitcoin private keys using weak signatures with random vulnerability from the blockchain. With automatic scanner of transactions
https://github.com/naboojarjar/rszscannervulnerability

bitcoin bitcoin-wallet ecdsa-cryptography python3 recovery-crypto rsz vulnerability

Last synced: 6 days ago
JSON representation

Transactions Scanner for RSZ Vulnerability For perform the Random vulnerability Recovering Bitcoin private keys using weak signatures with random vulnerability from the blockchain. With automatic scanner of transactions

Awesome Lists containing this project

README

        

# Bitcoin Transaction Scanner for RSZ Vulnerability

## Description
This script performs vulnerability checks on Bitcoin transactions for the Random Signature Zero (RSZ) vulnerability. The vulnerability allows for recovering private keys from weak signatures in Bitcoin transactions.

It automatically scans transactions associated with a Bitcoin address, checks for signature reuse, and extracts R, S, and Z values from each transaction. If vulnerabilities are detected, it outputs the affected values and computes the corresponding private key.

## Features
- **RSZ Vulnerability Scanner**: Detects weak signatures in Bitcoin transactions.
- **Transaction Fetching**: Uses the Blockstream API to fetch transaction data.
- **R, S, Z Extraction**: Extracts R, S, and Z values from Bitcoin transaction inputs.
- **Private Key Recovery**: Attempts to recover Bitcoin private keys from vulnerable signatures.

## Requirements
- Python 3.x
- `sympy` library
- `bitcoinlib` library
- `requests` library

You can install the required dependencies by running the following command:
```bash
pip install -r sympy bitcoinlib requests
```

```bash

Enter the path to your Python addresses file: addresses.py
Enter the number of transactions to scan for each address: 10
Scanning address 1FeexV6b....
Scanning transaction 8e6f573f...
Extracted r: 4f9b06c..., s: b3e4b27...
Vulnerability detected in transaction 8e6f573f:
r: 4f9b06c..., s1: b3e4b27..., s2: 9a23354..., z1: abcdef..., z2: fghijk...
Private key: 1a2b3c4d5e6f7g8h9i...
No vulnerabilities found in transaction abcdef...
...