Giter Site home page Giter Site logo

adrijano / bitcoin-wallet-cracker Goto Github PK

View Code? Open in Web Editor NEW
430.0 37.0 182.0 23.78 MB

Automated Bitcoin wallet generator that with mnemonic and passphrases bruteforces wallet addresses

License: MIT License

Python 100.00%
btc btc-bruteforce bitcoin-bruteforce bruteforce brute-force-attacks brute-force bruteforce-attacks bruteforce-attack hack python

bitcoin-wallet-cracker's Introduction

Imgur

Programmed in Python | PySimpleGUI

forthebadge made-with-python

Open Source Love svg1

Maintenance

Bitcoin wallet cracker

Automated Bitcoin wallet generator. With mnemonic and passphrases bruteforces wallet addresses.

If you like it give it a star

GitHub stars

Adrijan's github stats

Usage:

Python3+

git clone https://github.com/adrijano/Bitcoin-wallet-cracker.git

cd Bitcoin-wallet-cracker && pip install -r requirements.txt

python bc.py

Windows

cd dist
start bc.exe

Proof of Concept

Although this project can be used maliciously, it is simply an 
exploration into the Bitcoin protocol and advanced encryption and 
hashing techniques using Python.

Address with balance is saved in txt file

address: 17wd8bTwMPYfbo6YwmTFU4xH4hDkd13ATZ
private key: 0651863bf5d902262b17c4621ec340544ff016752543d99a92d7d22872d8a455
WIF private key: 5Hs4yg5HYcAmS97UPgmj54V6Lvmv1yKf4yGWs4qcwkWjB5FFnaz
public key: 040577b1aa3256fed819174b1e6557d4b269f42e383df393b1e8a4c6b9d117994
bc476304738fb948cec05a5d17d0fe6f996e7ec0b4a8e2853e41d6657f3f41e33



address: 125Rs7DdFpNdZgxtPvsQXiM3MDsCEt6F49
private key: 177c1fdf54c4cb646e3425b7756f5c517c740bdc997b59c968e0a92a0b425f54
WIF private key: 5HzdUFvvYhiKw97xnZtv5eYWuHKQZ1GMWVChuzkxwuQvrzacPg5
public key: 04040e4311b932c26f2172e112d1e37bca43428ea6951e3269513ecff6dda67dd
8b39666ef34e1dfd82cfdc689d6099905ed9f291f4b4bdf921e81d1b657eee1e6

ForTheBadge built-with-love

Disclaimer

The code within this repository comes with no guarantee, the use of this code is your responsibility. I take NO responsibility and/or liability for how you choose to use any of the source code available here. By using any of the files available in this repository, you understand that you are AGREEING TO USE AT YOUR OWN RISK. Once again, ALL files available here are for EDUCATION and/or RESEARCH purposes ONLY.

bitcoin-wallet-cracker's People

Contributors

adrijano avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

bitcoin-wallet-cracker's Issues

Adrijano

How to download this in android how bro

bc application file disappeared

hi bro..
while i click bc - application file in dist folder...
its immeidately disappeared.. not opening..
still this tool works..? kindly update pls.
thanks

my own address?

hi, i forgot my own passphrases. It consisted of 12 words. I have 11 words, but not 1 word. balance, what explorer is it looking for? I want to remove it. and instead I want to specify an address with 4 addresses of my own.

Old Version

I just got the files look like from 2 year ago. Looking at the code it seems some difference. Is there a problem using old code or is there advantage to new code? What is difference?

bc.py does not work in python 3 / python 2

Hi, I have tried to run your program in python 3 and python 2. In the case of python 3, I get this error (when i install the requirements) (I am running it from ubuntu-20.04, pip3)

error_bitcoin_wallet_cracker

In the case of python 2, I can install the requirements without problems, but it fails me when I try to run bc.py:

image

thanks in advance!

Bitcoin addresses

Hi! On 'select passwords' Do you use Dictionary as in your gif?

Also is there an alert when an address is found? Where is the txt file?

I'm looking to break my own. Just wondering if i can just let it crack 1 address. Thanks!

Database

How can I increase the database size I want to add more wallets

database

why is there a database with addresses?
When you random select words and check if they exist then you don't need a database list with addresses right?

problem .. Not working

1
2

1: I tested this program. I noticed that the program output is wrong.
2: I noticed the program selects duplicates of words in a seed, but the old bitcoin wallet program rarely chose duplicates.

Failed to execute script bc

Error happened that shows as the title in the message box.
In the running program it shows as the screenshot.
bitissue

hmac problem ?

Hi,

I have problem for try this tool, when i want install hmac on windows or debian I get this error on windows :

Traceback (most recent call last):
File "", line 1, in
File "C:\Users\freem\AppData\Local\Temp\pip-install-43un5jvm\hashlib_2818bcfc620d42319391f72b9b9f3100\setup.py", line 68
print "unknown OS, please update setup.py"
^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print("unknown OS, please update setup.py")?
----------------------------------------

and on debian :

Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "", line 1, in
File "/usr/local/lib/python3.7/dist-packages/setuptools/init.py", line 16, in
import setuptools.version
File "/usr/local/lib/python3.7/dist-packages/setuptools/version.py", line 1, in
import pkg_resources
File "/usr/local/lib/python3.7/dist-packages/pkg_resources/init.py", line 33, in
import email.parser
File "/usr/lib/python3.7/email/parser.py", line 12, in
from email.feedparser import FeedParser, BytesFeedParser
File "/usr/lib/python3.7/email/feedparser.py", line 27, in
from email._policybase import compat32
File "/usr/lib/python3.7/email/_policybase.py", line 9, in
from email.utils import _has_surrogates
File "/usr/lib/python3.7/email/utils.py", line 28, in
import random
File "/usr/lib/python3.7/random.py", line 46, in
from hashlib import sha512 as _sha512
File "/tmp/pip-install-xtn20qsf/hashlib/hashlib.py", line 80
raise ValueError, "unsupported hash type"
^
SyntaxError: invalid syntax

----------------------------------------

Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-install-xtn20qsf/hashlib/

and when i click on start :

cracker

Syntax error on termux

Hello!
I just tried to run this program through termux and i got an error. This is the output of the command ("pip3 install -r requirements.txt")


  × python setup.py egg_info did not run successfully.
  │ exit code: 1
  ╰─> [7 lines of output]
      Traceback (most recent call last):
        File "<string>", line 2, in <module>
        File "<pip-setuptools-caller>", line 34, in <module>
        File "/data/data/com.termux/files/usr/tmp/pip-install-64y8x61s/hashlib_ebf15824fd1c4af8b711517f5edf5d72/setup.py", line 68
          print "unknown OS, please update setup.py"
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
      [end of output```

not work

when checking the mnemonics do not fit wallets, if you press stop and check at least one, it will turn out to be incorrect

I want to run this without password

It just feels that adding a password file (13th word) makes things so much harder.
How can I run this without password?

I am willing to possibly donate some if we can get this sorted.

txt valid result

Hello! what will be the name of the text file in which the positive result will be saved?

Adding a wallets checked per second part to the cracker?

I think it would be extremely helpful to have a 'wallets per second checked' feature on the top of the cracker, right above the timer at the top.

the dark web ones apparently have it but they're very unreliable and not supported/updated at all from what I've heard.

I think it would be a good way to test the speed of the computers running the cracker and see which ones are the most powerful for running the code. By the way is it the GPU that is being used the most or the RAM?

Specify a single wallet?

Hi there would it be possible to specify a single wallet? and run through combinations like so?

How to get a

How to get access to someone bitcoin wallet and transfer the funds to another wallet

A few questions about how it works.

I would like to know what the verification functions are so that it can say that such mnemonic passphrase is valid ?

I'd also like to know what the data-base file is for, which it doesn't seem to use to check wallets because even if it's empty, it checks random addresses.

Thank you very much in advance for your reply.

Invalid Syntax

Hi,

I downloaded Python 3 embedded package, typed in "py" in the search in start menu on Windows and ran,

git clone https://github.com/adrijano/Bitcoin-wallet-cracker.git

cd Bitcoin-wallet-cracker && pip install -r requirements.txt

python bc.py

I also tried running,

cd dist
start bc.exe

Both gave me "Invalid Sysntax," and the program did not open. How can I run this?

some ideas for the script

hey nice work the python gui looks good. maybe you can make some changes:

For now the script shows many things like the key and mnemonic but to test i thinks it will work slowly with all the information listing. Also if i want to see if the script will work i must copy everything search and replace the not luck text and see if it find an adress with balance.

Solution: Maybe you can made a Wallet Generator Mode with iformation like seed and anything like not but with input field with own passphrase and 2 more modes a cracking mode with passphrase and one without passphrase and then it only shows the adress without balance in output field or maybe that someone can chose output in file or in the window.

It also will be very cool if you can made a multiwallet version that also checks other crypto coins or tokens like SafeMoon, Elongate, ADA and something like in Trust Wallet. For this we also need no passphrase and it is maybe easier to find balance.
The Windows Version inside is also really cool that i only must open the .exe and chose passwort file and it will run, no python update errors or something else.

An Database Update tool also will be nice.

thx

working with start and endpoints without random

is there maybe a way that i can set a start and an endpoint to the script without using random? and can i maybe directly save then to an txt file that split every 100mb?

there is a bitcoin puzzle chalenge i need to find a key between
0000000000000000000000000000000000000000000000007cce5efdaccf6808
and
000000000000000000000000000000000000000000000001a838b13505b26867

i know that i must generate billion of keys but maybe is it possible with some changes on your script? thx

Failed to execute script bc

Error happened that shows as the title in the message box.
In the running program, it shows as the screenshot.
bitissue

CUDA and ChatGPT

Hi
I asked ChatGPT to make this script run through CUDA (NVidia RTX 2060). This is what it replied to me:

To run a Python script on CUDA with an NVIDIA RTX 2060 instead of using the CPU, you'll need to utilize NVIDIA's CUDA library. The CUDA library provides support for parallel programming on NVIDIA GPUs.

Here are the basic steps you'll need to follow:

  1. Verify that you have the CUDA driver installed on your system. Make sure you have the correct version of the CUDA driver that is compatible with your RTX 2060 GPU.

  2. Install the pycuda package, which is a Python library that provides an interface to the CUDA API.

    You can install pycuda using the pip package manager:

    pip install pycuda
    
  3. Import the necessary modules in your Python script:

    import pycuda.autoinit
    import pycuda.driver as cuda
    from pycuda.compiler import SourceModule
  4. Write the CUDA kernel that will run on the GPU. CUDA kernels are written in a C-like programming language and are dynamically compiled during the execution of the Python script. Here's a simple example of a CUDA kernel that adds two vectors:

    kernel_code = """
    __global__ void vector_add(float *a, float *b, float *c, int n) {
        int i = threadIdx.x + blockIdx.x * blockDim.x;
        if (i < n) {
            c[i] = a[i] + b[i];
        }
    }
    """
  5. Compile the CUDA kernel using SourceModule from pycuda:

    mod = SourceModule(kernel_code)
  6. Obtain a reference to the compiled kernel function:

    vector_add = mod.get_function("vector_add")
  7. Create NumPy arrays for the data that will be transferred to the GPU:

    import numpy as np
    
    n = 100  # size of the vectors
    a = np.random.randn(n).astype(np.float32)
    b = np.random.randn(n).astype(np.float32)
    c = np.zeros(n, dtype=np.float32)
  8. Transfer the data to GPU memory:

    a_gpu = cuda.mem_alloc(a.nbytes)
    b_gpu = cuda.mem_alloc(b.nbytes)
    c_gpu = cuda.mem_alloc(c.nbytes)
    
    cuda.memcpy_htod(a_gpu, a)
    cuda.memcpy_htod(b_gpu, b)
  9. Set the block and grid size configuration for kernel execution:

    block = (128, 1, 1)  # block size
    grid = ((n + block[0] - 1) // block[0], 1)  # grid size
  10. Call the kernel to execute on the GPU:

    vector_add(a_gpu, b_gpu, c_gpu, np.int32(n), block=block, grid=grid)
  11. Transfer the result back to host memory:

    cuda.memcpy_dtoh(c, c_gpu)
  12. Now, c will contain the result of the vector addition on the GPU.

Please note that this is just a simple example to illustrate the use of CUDA with PyCUDA. Depending on your specific Python script, additional modifications may be required.

Also, it's important to consider that not all parts of your script may benefit from GPU execution. Not all operations are suitable for CUDA parallelization, so you need to identify the parts of your code that can be accelerated

Certainly! To make your script utilize CUDA with an NVIDIA RTX 2060, you would need to identify parts of the code that can be accelerated using GPU parallelization and modify them accordingly. In the provided script, it seems that most of the computations are CPU-bound and may not benefit significantly from GPU acceleration. However, you can explore optimizing specific sections of your code using CUDA. Here's an example of how you could modify a specific function, hmac512, to utilize CUDA with PyCUDA:

First, make sure you have PyCUDA and the CUDA toolkit installed on your system.

Next, modify the hmac512 function to use PyCUDA for GPU acceleration:

import pycuda.autoinit
import pycuda.driver as cuda
from pycuda.compiler import SourceModule
import numpy as np

def hmac512(mnemonic, passphrase):
    mod = SourceModule("""
    #include <string.h>
    #include <openssl/hmac.h>

    __global__ void hmac_kernel(const char* mnemonic, const char* passphrase, char* result) {
        unsigned char digest[EVP_MAX_MD_SIZE];
        unsigned int digest_len;
        HMAC(EVP_sha512(), (const unsigned char*)mnemonic, strlen(mnemonic),
             (const unsigned char*)passphrase, strlen(passphrase),
             digest, &digest_len);
        for (int i = 0; i < digest_len; i++) {
            result[i] = digest[i];
        }
    }
    """)

    # Transfer mnemonic and passphrase to device memory
    mnemonic_gpu = cuda.to_device(mnemonic.encode())
    passphrase_gpu = cuda.to_device(passphrase.encode())

    # Allocate memory for the result on the device
    result_gpu = cuda.mem_alloc(len(mnemonic) + len(passphrase) + 1)

    # Launch the kernel
    hmac_kernel = mod.get_function("hmac_kernel")
    hmac_kernel(mnemonic_gpu, passphrase_gpu, result_gpu, block=(1, 1, 1))

    # Transfer the result back to the host
    result = np.empty(len(mnemonic) + len(passphrase) + 1, dtype=np.uint8)
    cuda.memcpy_dtoh(result, result_gpu)

    return result.tobytes().decode()

In this modified version, the hmac512 function now utilizes a CUDA kernel to perform the HMAC calculation on the GPU. The SourceModule from PyCUDA is used to define and compile the CUDA kernel code. The kernel is launched using the hmac_kernel function, and the result is transferred back to the host for further processing.

Please note that this modification is just an example and focuses on a specific part of your code. Depending on the specific requirements and computations in your script, you may need to explore and modify other sections to take full advantage of GPU acceleration.

In the modified script, the following changes have been made:

  1. The bip function now only takes the num parameter and reads the BIP0039 word list from the file. It generates a random set of words based on the specified num and returns the generated mnemonic.

  2. The master function now takes the mnemonic as a parameter and directly calculates the master key by hashing the mnemonic using SHA-256. It returns the resulting master key.

  3. The pubkey function remains unchanged.

  4. The addr function remains unchanged.

  5. The wif function now takes the masterkey as a parameter and directly calculates the WIF (Wallet Import Format) by hashing the master key. It returns the resulting WIF.

  6. The database function remains unchanged.

  7. The mnemonic variable is generated using the bip function with the specified num value.

  8. The masterkey variable is generated by calling the master function with the mnemonic as a parameter.

  9. The public_key variable is generated using the pubkey function with the masterkey as a parameter.

  10. The address variable is generated using the addr function with the public_key as a parameter.

  11. The WIF variable is generated using the wif function with the masterkey as a parameter.

  12. The data_base variable is obtained from the database function by passing the address as a parameter.

  13. The output in the print statement has been updated to reflect the changes in the variable names and structure.

These changes ensure that the script generates the mnemonic, master key, public key, address, WIF, and checks the database for the address with balance correctly.

Starting issue

When i start the program it says failed to execute script bc

Pls someone tell me how to fix issue

telegram text

I saw your texts, but you made it unable for me to reply you…. It’s as if you set up a group which only you can send stuffs there.
Here is a pic of what I’m saying
Uploading 9FFCF319-5485-4AEA-B005-341B66D8C0AF.png…

Bitcoin hack

How can i decrypt a wallet and access the funds?

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.