Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/naboojarjar/rszscannervulnerability
- Owner: NabooJarJar
- Created: 2024-12-28T11:19:14.000Z (6 days ago)
- Default Branch: main
- Last Pushed: 2024-12-28T11:59:13.000Z (6 days ago)
- Last Synced: 2024-12-28T12:20:22.647Z (6 days ago)
- Topics: bitcoin, bitcoin-wallet, ecdsa-cryptography, python3, recovery-crypto, rsz, vulnerability
- Language: Python
- Homepage:
- Size: 15.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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` libraryYou 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...
...