GithubHelp home page GithubHelp logo

mkhaled87 / dormantbitcoinhunter Goto Github PK

View Code? Open in Web Editor NEW
35.0 35.0 16.0 6.41 MB

A Python script to generate random bitcoin private keys, extract their bitcoin addresses and compare against a list of addresses which have large amount of bitcoins (i.e., the Dormant List). It is a hunt for treasure ! If it finds a match, it will send an email.

Python 99.99% Shell 0.01% Batchfile 0.01%
bitcoin bitcoin-addresses dormant-list luck private-keys random

dormantbitcoinhunter's People

Contributors

mkhaled87 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

Watchers

 avatar  avatar

dormantbitcoinhunter's Issues

i have no idea why this dosent work

everytime i try to run hunt.py it dosent work and when i try to run python hunt.,py it tells me
"python: can't open file 'C:\WINDOWS\system32\hunt.py': [Errno 2] No such file or directory"

How is duplication of work handled?

Pardon me for my as this might seem a simple doubt. I'm a beginner. But, once I stop and start the instance again, does it not generate same addresses as previous session again? I know it is random with RNG. But, still, isn't there a chance of creating same addresses as before? Isn't there a chance of duplication of efforts between sessions? What are the odds of that happening and how is it handled?

Compare with dorment list only?

Hey I was trying your python script and I thought if it only compares to the list of 100 addresses with lots of bitcoin then there may be a waste of other addresses which aren't in the list but may as well hold some bitcoins in them? Is there anyway to make it give an output in the keys.txt whenever it finds any private key that holds any bitcoin 1+

i.e.

if it has 1+ bitcoin, then write the private key.

Does it pick up where it left off after you stop the process?

Hey,

Currently have your code running, fun project, I was wondering though when you stop the process does it pick up where the last process stopped or does it start fresh again? How do you ensure theres no duplicates?

Also is there anyway to send a test email to ensure that if it does find something you do get the email? Or does the key txt file auto update just to check?

Thanks :-)

Unable to work on M1 MacBook Air

am not able to get this to work on an M1 MacBook Air. Any assistance would be appreciated! I pasted the what happens when I try to install bitcoinlib. I attempted some solutions on Google but nothing is working!

test@tests-MacBook-Air ~ % pip3 install bitcoinlib
Defaulting to user installation because normal site-packages is not writeable
Collecting bitcoinlib
Using cached bitcoinlib-0.6.4-py3-none-any.whl (327 kB)
Collecting numpy>=1.21.0
Using cached numpy-1.22.4-cp38-cp38-macosx_11_0_arm64.whl (12.7 MB)
Collecting pyaes==1.6.1
Using cached pyaes-1.6.1-py3-none-any.whl
Collecting SQLAlchemy>=1.4.28
Using cached SQLAlchemy-1.4.36.tar.gz (8.1 MB)
Preparing metadata (setup.py) ... done
Collecting scrypt>=0.8.19
Using cached scrypt-0.8.20.tar.gz (55 kB)
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing metadata (pyproject.toml) ... done
Collecting requests>=2.25.0
Using cached requests-2.27.1-py2.py3-none-any.whl (63 kB)
Requirement already satisfied: fastecdsa>=2.2.3 in ./Library/Python/3.8/lib/python/site-packages (from bitcoinlib) (2.2.3)
Collecting charset-normalizer~=2.0.0
Using cached charset_normalizer-2.0.12-py3-none-any.whl (39 kB)
Collecting idna<4,>=2.5
Using cached idna-3.3-py3-none-any.whl (61 kB)
Collecting urllib3<1.27,>=1.21.1
Using cached urllib3-1.26.9-py2.py3-none-any.whl (138 kB)
Collecting certifi>=2017.4.17
Using cached certifi-2022.5.18.1-py3-none-any.whl (155 kB)
Building wheels for collected packages: scrypt, SQLAlchemy
Building wheel for scrypt (pyproject.toml) ... error
error: subprocess-exited-with-error

× Building wheel for scrypt (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [42 lines of output]
running bdist_wheel
running build
running build_py
creating build
creating build/lib.macosx-10.14.6-arm64-3.8
creating build/lib.macosx-10.14.6-arm64-3.8/scrypt
copying scrypt/init.py -> build/lib.macosx-10.14.6-arm64-3.8/scrypt
copying scrypt/scrypt.py -> build/lib.macosx-10.14.6-arm64-3.8/scrypt
creating build/lib.macosx-10.14.6-arm64-3.8/scrypt/tests
copying scrypt/tests/init.py -> build/lib.macosx-10.14.6-arm64-3.8/scrypt/tests
copying scrypt/tests/test_scrypt_py2x.py -> build/lib.macosx-10.14.6-arm64-3.8/scrypt/tests
copying scrypt/tests/test_scrypt_py3x.py -> build/lib.macosx-10.14.6-arm64-3.8/scrypt/tests
copying scrypt/tests/test_scrypt_c_module.py -> build/lib.macosx-10.14.6-arm64-3.8/scrypt/tests
copying scrypt/tests/test_scrypt.py -> build/lib.macosx-10.14.6-arm64-3.8/scrypt/tests
copying scrypt/tests/ciphertexts.csv -> build/lib.macosx-10.14.6-arm64-3.8/scrypt/tests
copying scrypt/tests/hashvectors.csv -> build/lib.macosx-10.14.6-arm64-3.8/scrypt/tests
running build_ext
building '_scrypt' extension
creating build/temp.macosx-10.14.6-arm64-3.8
creating build/temp.macosx-10.14.6-arm64-3.8/scrypt-1.2.1
creating build/temp.macosx-10.14.6-arm64-3.8/scrypt-1.2.1/lib
creating build/temp.macosx-10.14.6-arm64-3.8/scrypt-1.2.1/lib/crypto
creating build/temp.macosx-10.14.6-arm64-3.8/scrypt-1.2.1/lib/scryptenc
creating build/temp.macosx-10.14.6-arm64-3.8/scrypt-1.2.1/lib/util
creating build/temp.macosx-10.14.6-arm64-3.8/scrypt-1.2.1/libcperciva
creating build/temp.macosx-10.14.6-arm64-3.8/scrypt-1.2.1/libcperciva/alg
creating build/temp.macosx-10.14.6-arm64-3.8/scrypt-1.2.1/libcperciva/crypto
creating build/temp.macosx-10.14.6-arm64-3.8/scrypt-1.2.1/libcperciva/util
creating build/temp.macosx-10.14.6-arm64-3.8/src
clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -iwithsysroot/System/Library/Frameworks/System.framework/PrivateHeaders -iwithsysroot/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.8/Headers -arch arm64 -arch x86_64 -Werror=implicit-function-declaration -DHAVE_CONFIG_H -DHAVE_POSIX_MEMALIGN=1 -DHAVE_SYSCTL_HW_USERMEM=1 -Iscrypt-1.2.1 -Iscrypt-1.2.1/lib -Iscrypt-1.2.1/lib/scryptenc -Iscrypt-1.2.1/lib/crypto -Iscrypt-1.2.1/lib/util -Iscrypt-1.2.1/libcperciva/cpusupport -Iscrypt-1.2.1/libcperciva/alg -Iscrypt-1.2.1/libcperciva/util -Iscrypt-1.2.1/libcperciva/crypto -I/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/include/python3.8 -c scrypt-1.2.1/lib/crypto/crypto_scrypt.c -o build/temp.macosx-10.14.6-arm64-3.8/scrypt-1.2.1/lib/crypto/crypto_scrypt.o
clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -iwithsysroot/System/Library/Frameworks/System.framework/PrivateHeaders -iwithsysroot/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.8/Headers -arch arm64 -arch x86_64 -Werror=implicit-function-declaration -DHAVE_CONFIG_H -DHAVE_POSIX_MEMALIGN=1 -DHAVE_SYSCTL_HW_USERMEM=1 -Iscrypt-1.2.1 -Iscrypt-1.2.1/lib -Iscrypt-1.2.1/lib/scryptenc -Iscrypt-1.2.1/lib/crypto -Iscrypt-1.2.1/lib/util -Iscrypt-1.2.1/libcperciva/cpusupport -Iscrypt-1.2.1/libcperciva/alg -Iscrypt-1.2.1/libcperciva/util -Iscrypt-1.2.1/libcperciva/crypto -I/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/include/python3.8 -c scrypt-1.2.1/lib/crypto/crypto_scrypt_smix.c -o build/temp.macosx-10.14.6-arm64-3.8/scrypt-1.2.1/lib/crypto/crypto_scrypt_smix.o
clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -iwithsysroot/System/Library/Frameworks/System.framework/PrivateHeaders -iwithsysroot/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.8/Headers -arch arm64 -arch x86_64 -Werror=implicit-function-declaration -DHAVE_CONFIG_H -DHAVE_POSIX_MEMALIGN=1 -DHAVE_SYSCTL_HW_USERMEM=1 -Iscrypt-1.2.1 -Iscrypt-1.2.1/lib -Iscrypt-1.2.1/lib/scryptenc -Iscrypt-1.2.1/lib/crypto -Iscrypt-1.2.1/lib/util -Iscrypt-1.2.1/libcperciva/cpusupport -Iscrypt-1.2.1/libcperciva/alg -Iscrypt-1.2.1/libcperciva/util -Iscrypt-1.2.1/libcperciva/crypto -I/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/include/python3.8 -c scrypt-1.2.1/lib/crypto/crypto_scrypt_smix_sse2.c -o build/temp.macosx-10.14.6-arm64-3.8/scrypt-1.2.1/lib/crypto/crypto_scrypt_smix_sse2.o
clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -iwithsysroot/System/Library/Frameworks/System.framework/PrivateHeaders -iwithsysroot/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.8/Headers -arch arm64 -arch x86_64 -Werror=implicit-function-declaration -DHAVE_CONFIG_H -DHAVE_POSIX_MEMALIGN=1 -DHAVE_SYSCTL_HW_USERMEM=1 -Iscrypt-1.2.1 -Iscrypt-1.2.1/lib -Iscrypt-1.2.1/lib/scryptenc -Iscrypt-1.2.1/lib/crypto -Iscrypt-1.2.1/lib/util -Iscrypt-1.2.1/libcperciva/cpusupport -Iscrypt-1.2.1/libcperciva/alg -Iscrypt-1.2.1/libcperciva/util -Iscrypt-1.2.1/libcperciva/crypto -I/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/include/python3.8 -c scrypt-1.2.1/lib/scryptenc/scryptenc.c -o build/temp.macosx-10.14.6-arm64-3.8/scrypt-1.2.1/lib/scryptenc/scryptenc.o
clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -iwithsysroot/System/Library/Frameworks/System.framework/PrivateHeaders -iwithsysroot/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.8/Headers -arch arm64 -arch x86_64 -Werror=implicit-function-declaration -DHAVE_CONFIG_H -DHAVE_POSIX_MEMALIGN=1 -DHAVE_SYSCTL_HW_USERMEM=1 -Iscrypt-1.2.1 -Iscrypt-1.2.1/lib -Iscrypt-1.2.1/lib/scryptenc -Iscrypt-1.2.1/lib/crypto -Iscrypt-1.2.1/lib/util -Iscrypt-1.2.1/libcperciva/cpusupport -Iscrypt-1.2.1/libcperciva/alg -Iscrypt-1.2.1/libcperciva/util -Iscrypt-1.2.1/libcperciva/crypto -I/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/include/python3.8 -c scrypt-1.2.1/lib/scryptenc/scryptenc_cpuperf.c -o build/temp.macosx-10.14.6-arm64-3.8/scrypt-1.2.1/lib/scryptenc/scryptenc_cpuperf.o
clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -iwithsysroot/System/Library/Frameworks/System.framework/PrivateHeaders -iwithsysroot/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.8/Headers -arch arm64 -arch x86_64 -Werror=implicit-function-declaration -DHAVE_CONFIG_H -DHAVE_POSIX_MEMALIGN=1 -DHAVE_SYSCTL_HW_USERMEM=1 -Iscrypt-1.2.1 -Iscrypt-1.2.1/lib -Iscrypt-1.2.1/lib/scryptenc -Iscrypt-1.2.1/lib/crypto -Iscrypt-1.2.1/lib/util -Iscrypt-1.2.1/libcperciva/cpusupport -Iscrypt-1.2.1/libcperciva/alg -Iscrypt-1.2.1/libcperciva/util -Iscrypt-1.2.1/libcperciva/crypto -I/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/include/python3.8 -c scrypt-1.2.1/lib/util/memlimit.c -o build/temp.macosx-10.14.6-arm64-3.8/scrypt-1.2.1/lib/util/memlimit.o
clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -iwithsysroot/System/Library/Frameworks/System.framework/PrivateHeaders -iwithsysroot/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.8/Headers -arch arm64 -arch x86_64 -Werror=implicit-function-declaration -DHAVE_CONFIG_H -DHAVE_POSIX_MEMALIGN=1 -DHAVE_SYSCTL_HW_USERMEM=1 -Iscrypt-1.2.1 -Iscrypt-1.2.1/lib -Iscrypt-1.2.1/lib/scryptenc -Iscrypt-1.2.1/lib/crypto -Iscrypt-1.2.1/lib/util -Iscrypt-1.2.1/libcperciva/cpusupport -Iscrypt-1.2.1/libcperciva/alg -Iscrypt-1.2.1/libcperciva/util -Iscrypt-1.2.1/libcperciva/crypto -I/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/include/python3.8 -c scrypt-1.2.1/libcperciva/alg/sha256.c -o build/temp.macosx-10.14.6-arm64-3.8/scrypt-1.2.1/libcperciva/alg/sha256.o
clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -iwithsysroot/System/Library/Frameworks/System.framework/PrivateHeaders -iwithsysroot/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.8/Headers -arch arm64 -arch x86_64 -Werror=implicit-function-declaration -DHAVE_CONFIG_H -DHAVE_POSIX_MEMALIGN=1 -DHAVE_SYSCTL_HW_USERMEM=1 -Iscrypt-1.2.1 -Iscrypt-1.2.1/lib -Iscrypt-1.2.1/lib/scryptenc -Iscrypt-1.2.1/lib/crypto -Iscrypt-1.2.1/lib/util -Iscrypt-1.2.1/libcperciva/cpusupport -Iscrypt-1.2.1/libcperciva/alg -Iscrypt-1.2.1/libcperciva/util -Iscrypt-1.2.1/libcperciva/crypto -I/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/include/python3.8 -c scrypt-1.2.1/libcperciva/crypto/crypto_aes.c -o build/temp.macosx-10.14.6-arm64-3.8/scrypt-1.2.1/libcperciva/crypto/crypto_aes.o
scrypt-1.2.1/libcperciva/crypto/crypto_aes.c:6:10: fatal error: 'openssl/aes.h' file not found
#include <openssl/aes.h>
^~~~~~~~~~~~~~~
1 error generated.
error: command '/usr/bin/clang' failed with exit code 1
[end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for scrypt
Building wheel for SQLAlchemy (setup.py) ... done
Created wheel for SQLAlchemy: filename=SQLAlchemy-1.4.36-cp38-cp38-macosx_10_14_6_arm64.whl size=1555775 sha256=bbfd64e42438ce7dc937547db1cb20c272b6e3d700a57fa516b837445a5b3522
Stored in directory: /Users/test/Library/Caches/pip/wheels/47/b7/10/080836da0d570aa79c319942a3244023109239a4fba388a5c3
Successfully built SQLAlchemy
Failed to build scrypt
ERROR: Could not build wheels for scrypt, which is required to install pyproject.toml-based projects

Error: SMTP AUTH extension not supported by server - Fixed

Issue:

To be sure that emails are sent correctly, I tried the send_email method seperatly.

Turns out there will be an error when sending a mail:
smtplib.SMTPNotSupportedError: SMTP AUTH extension not supported by server

Steps to fix:

1.) import ssl

import ssl

2.) add a context variable to send_email method and call smtplib. Final method looks like this (the two added lines are marked):

def send_email(lucky_text):
        text = env.email_text + "\n" + lucky_text
        msg = EmailMessage()
        msg.set_content(text)
        msg['Subject'] = env.subject
        msg['From'] = env.SEND_FROM
        msg['To'] = env.SEND_TO
        context=ssl.create_default_context()                                #line added
        s = smtplib.SMTP(env.SMTP_HOST, env.SMTP_PORT)
        s.starttls(context=context)                                         #line added
        s.login(env.USER, env.PASS)
        s.send_message(msg)
        s.quit()
        print('Lucky Email sent!')

Note: This works fine when using a gmail account to send mails with smtp.gmail.com host on port 587.
Used system: Windows

Source: https://stackoverflow.com/a/58997830

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.