Code Monkey home page Code Monkey logo

altcrack's Introduction

AltCrack

A tool for brute-forcing Bitcoin and other Altcoin Forks of it private keys. The main purpose of this project is to contribute to the effort of solving the Bitcoin puzzle transaction: A transaction with 32 addresses that become increasingly difficult to crack.

Modification

The options to directly search for hash160 file was added (instead of btc legacy address on original bitcrack) in a hope to be a faster alternative to Brainflayer. Since many forks or bitcoin uses the same ecdsa math from privatekey to publickey, and only differ in the address encoding. It is better to change the addresses back into the RipeMd hash 160 format which is 40 characters in hex.

This can be done for all the coins [ Legacy BTC, Bech32 BTC, LTC, Zcash t1, Zcash t3, DOGE, XRP, DASH, BCH and many more coins] Once all the coins have been converted into the equivalent hash160 format. The file can be given input to this program and can be search in 1 go without any performance drop.

Note:

  (1)  Only search from file using -i file. Don't try directly on command line with 1 value.
  (2)  If you found the privatekey, Ignore the displayed address, compression flag and displayed public key. 
  (3)  Just grab the PrivateKey. That's all is needed. Enjoy :)

Using AltCrack

Usage

Use cualtCrack.exe for CUDA devices and clAltCrack.exe for OpenCL devices.

=================== Modified by IceLand ===================
This program searches for 20 byte HASH160 of any Altcoin from the given Hash160 file
=============================================================
AltCrack OPTIONS [TARGETS]
Where TARGETS is one or more Hash160

--help                  Display this message
-c, --compressed        Use compressed points
-u, --uncompressed      Use Uncompressed points
-r, --random            Use random values from keyspace
--compression  MODE     Specify compression where MODE is
                          COMPRESSED or UNCOMPRESSED or BOTH
-d, --device ID         Use device ID
-b, --blocks N          N blocks
-t, --threads N         N threads per block
-p, --points N          N points per thread
-i, --in FILE           Read Hash160 from FILE, one per line
-o, --out FILE          Write keys to FILE
-f, --follow            Follow text output
--list-devices          List available devices
--keyspace KEYSPACE     Specify the keyspace:
                          START:END
                          START:+COUNT
                          START
                          :END
                          :+COUNT
                        Where START, END, COUNT are in hex format
--stride N              Increment by N keys at a time
--share M/N             Divide the keyspace into N equal shares, process the Mth share
--continue FILE         Save/load progress from FILE

Examples

Multiple keys and multiple coins can be searched at once with minimal impact to performance. Provide the hash160 file in text form, one per line

xxAltCrack.exe -i hash160.txt

To start the search at a specific private key, use the --keyspace option:

xxAltCrack.exe --keyspace 766519C977831678F0000000000 -i hash160.txt

The --keyspace option can also be used to search a specific range:

xxAltCrack.exe --keyspace 80000000:ffffffff -i hash160.txt

To periodically save progress, the --continue option can be used. This is useful for recovering after an unexpected interruption:

Use the -b, -t and -p options to specify the number of blocks, threads per block, and keys per thread.

xxAltCrack.exe -b 32 -t 256 -p 16 -i hash160.txt

Choosing the right parameters for your device

GPUs have many cores. Work for the cores is divided into blocks. Each block contains threads.

There are 3 parameters that affect performance: blocks, threads per block, and keys per thread.

blocks: Should be a multiple of the number of compute units on the device. The default is 32.

threads: The number of threads in a block. This must be a multiple of 32. The default is 256.

Keys per thread: The number of keys each thread will process. The performance (keys per second) increases asymptotically with this value. The default is256. Increasing this value will cause the kernel to run longer, but more keys will be processed.

Build dependencies

Visual Studio 2015 (if on Windows) any other version can be used also with proper change

For CUDA: CUDA Toolkit 10.1

For OpenCL: An OpenCL SDK (The CUDA toolkit contains an OpenCL SDK).

Building in Windows

Open the Visual Studio solution.

Build the clKeyFinder project for an OpenCL build.

Build the cuKeyFinder project for a CUDA build.

Note: By default the NVIDIA OpenCL headers are used. You can set the header and library path for OpenCL in the BitCrack.props property sheet.

Building in Linux

Using make:

Build CUDA:

make BUILD_CUDA=1

Build OpenCL:

make BUILD_OPENCL=1

Or build both:

make BUILD_CUDA=1 BUILD_OPENCL=1

Supporting this project

If you find this project useful and would like to support it, consider making a donation. Your support is greatly appreciated!

**IceLand **

BTC:	bc1q39meky2mn5qjq704zz0nnkl0v7kj4uz6r529at
ETH:	0xa74fC23f07A33B90d6848dF0bb409bEA5Ac16b28
DOGE:	D5Wh5bQMc3XVGdLbjJbGjryjNom5tZY6dD

**BTC Brichard **: 1LqJ9cHPKxPXDRia4tteTJdLXnisnfHsof

altcrack's People

Contributors

brichard19 avatar iceland2k14 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

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

altcrack's Issues

Makefile correction

Correct your line
NVCCFLAGS=-std=c++11 -gencode=arch=compute_${COMPUTE_CAP},code=sm_${COMPUTE_CAP} -Xptxas="-v" -Xcompiler "${CXXFLAGS}"

old line is

NVCCFLAGS=-std=c++11 -gencode=arch=compute_${COMPUTE_CAP},code="sm_${COMPUTE_CAP}" -Xptxas="-v" -Xcompiler "${CXXFLAGS}"

only change
code="sm_${COMPUTE_CAP}"
to
code=sm_${COMPUTE_CAP}

Pls.

Big request. Huge request. Please ... Add a hash change over time or through the number of verified keys.

Altcoin issue

Hello Iceland , i test the program using doge coin , any peticular tricks so i can use it ? i had error
Loading addresses from 'doge.txt'
terminate called after throwing an instance of 'std::out_of_range'
what(): basic_string::substr: __pos (which is 18446744073709551615) > this->size() (which is 0)
Aborted (core dumped)
Please Help ,
Regards

Hash 160

how to create it? for altcoin ?

[Error] Error detecting devices: CL_UNKNOWN_ERROR

Hello, i try to complile AltCrack for Linux, compile is done, but when i run clBitCrack i get CL_UNKNOWN_ERROR
Drivers installed (CUDA 460)
Ubuntu 20
Advanced Micro Devices, Inc. [AMD/ATI] Baffin HDMI/DP Audio [Radeon RX 550 640SP / RX 560/560X]
Thanks

Trying to use a Hash160 List but got an error.

Hey

I got the following address 1H3vCn45DoSioSYRWF3cQ4LRKHwN8JhdRi and i reversed it to the Hash160 b00f4191dabe609d0624a274f99d765e83e00da4 but receiving an error (wrong address). Did I miss some parameter ?

I used:

cuBitCrack.exe -i accounts_hash160.txt --out results.txt --compressed --uncompressed --blocks 64 --threads 512 --points 1280

Thank you!

change starting point runtime.

Hi. how can i change starting points in runtime mode?
I called the getResultsInternal () function;
but I still have a problem. how to clear allocated memory in GPU. you can help me.
cudaFree () doesn't work.
please tell me.

Use of -c or -u

Hello, thanks for the code, it is a very good program.

I am using hashes, all of this type
"c50603f1115f6f4f4857637ae44ca515c89c824f"
and I don't understand if I should use "-c" or "-u"

can you explain those inputs a bit please, like "--compression"

Thanks

I couldn't find the file. Pull requests...

xxAltCrack.exe Where are the exe files? I use Bitcrack exe files and it gives an error too..

C:\Users\admin\Desktop\new\new\new)\AltCrack-master>cuBitCrack.exe --keyspace d000000000000000:dfffffffffffffff -i hash160.txt -o out.txt
[2021-11-12.23:41:12] [Info] Compression: compressed
[2021-11-12.23:41:12] [Info] Starting at: 000000000000000000000000000000000000000000000000D000000000000000
[2021-11-12.23:41:12] [Info] Ending at: 000000000000000000000000000000000000000000000000DFFFFFFFFFFFFFFF
[2021-11-12.23:41:12] [Info] Counting by: 0000000000000000000000000000000000000000000000000000000000000001
[2021-11-12.23:41:12] [Info] Initializing GeForce GTX 1050 Ti
[2021-11-12.23:41:12] [Info] Generating 262,144 starting points (10.0MB)
[2021-11-12.23:41:13] [Info] 10.0%
[2021-11-12.23:41:13] [Info] 20.0%
[2021-11-12.23:41:14] [Info] 30.0%
[2021-11-12.23:41:14] [Info] 40.0%
[2021-11-12.23:41:14] [Info] 50.0%
[2021-11-12.23:41:15] [Info] 60.0%
[2021-11-12.23:41:15] [Info] 70.0%
[2021-11-12.23:41:16] [Info] 80.0%
[2021-11-12.23:41:16] [Info] 90.0%
[2021-11-12.23:41:16] [Info] 100.0%
[2021-11-12.23:41:16] [Info] Done
[2021-11-12.23:41:16] [Error] Unable to open 'hash160.txt'
[2021-11-12.23:41:16] [Info] Error:

period of time

hello, please add a change of points after a period of time.

For example: at startup, 16,000,000 random points are created and every 30 minutes they are randomly generated again.

Wrong stride in continue file after restart

Hi, seems to be wrong reading continue file after restart cuBitCrack, example if we have line:

cuBitCrack -d 0 -i hash.txt --keyspace 1111111111111110000000000000000000000000000000000000000000000000 --stride 10000000000000000000000000000000000000000000000000 --continue continue.0 -p 1280 -o key.gpu.0 -f

before restart (correct):
stride=0000000000000010000000000000000000000000000000000000000000000000

after restart (not correct):
stride=0000000000000000000000000000000000000000000000007FFFFFFFFFFFFFFF

Random

what is -r random ?
is it same pinkchunka version, random point and then static running from points, or each m every findings are random ?

invalid device symbol Please Help me

root@dhl:/home/dhl/Desktop/AltCrack-master/bin# ./cuBitCrack -i 1.txt
sh: 1: COLOR: not found

================= [+] Modified by IceLand : Use Hash160 file to search for all the altcoins ==============
Gift : bc1q39meky2mn5qjq704zz0nnkl0v7kj4uz6r529at

[2021-02-12.19:49:03] [Info] Compression: compressed
[2021-02-12.19:49:03] [Info] Starting at: 0000000000000000000000000000000000000000000000000000000000000001
[2021-02-12.19:49:03] [Info] Ending at: FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364140
[2021-02-12.19:49:03] [Info] Counting by: 0000000000000000000000000000000000000000000000000000000000000001
[2021-02-12.19:49:03] [Info] Initializing GeForce RTX 3090
[2021-02-12.19:49:04] [Info] Generating 262,144 starting points (10.0MB)
[2021-02-12.19:49:04] [Info] Error: invalid device symbol

root@dhl:/home/dhl/Desktop/AltCrack-master/bin# nvcc --version
nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2019 NVIDIA Corporation
Built on Sun_Jul_28_19:07:16_PDT_2019
Cuda compilation tools, release 10.1, V10.1.243

Hey man Random -r option not working on --keyspace, its Random key overall

Hey man Random -r option not working on --keyspace START:END, It's the making Over all key random rather than only in THis Keyspace range.

Now Its working like

2021-02-13.20:57:18] [Info] Compression: compressed
[2021-02-13.20:57:18] [Info] Starting at: 0000000000000000000000000000000000000000000000400000000000000000
[2021-02-13.20:57:18] [Info] Ending at: 00000000000000000000000000000000000000000000007FFFFFFFFFFFFFFFFF
[2021-02-13.20:57:18] [Info] Counting by: 0000000000000000000000000000000000000000000000000000000000000001
[2021-02-13.20:57:18] [Info] Generating random starting points
[2021-02-13.20:57:18] [Info] Compiling OpenCL kernels...
[2021-02-13.20:57:18] [Info] Initializing GeForce RTX 3090
[2021-02-13.20:57:27] [Info] Generating 62,976,000 starting points (2402.3MB)
[2021-02-13.20:57:27] [Info] Starting point sample: C908CD17D3D922372DA08BED1CA0ADBA8ECA763D148E10FF4045E845F470D936 (256 bit range)
[2021-02-13.20:57:27] [Info] Starting point sample: 3737048502DA74D23B0F16FC2F55989B21F5EEFBD9745F3DB8D2D76A0F1B9E2A (254 bit range)
[2021-02-13.20:57:27] [Info] Starting point sample: D9FE4EA1D3E4C1441618933479658FEED3A13BD48E397F0F675621E67FA0628B (256 bit range)
[

It Should Me Work like

[2021-02-14.21:45:32] [Info] Compression: compressed
[2021-02-14.21:45:32] [Info] Starting at: 0000000000000000000000000000000000000000000000400000000000000000
[2021-02-14.21:45:32] [Info] Ending at: 00000000000000000000000000000000000000000000007FFFFFFFFFFFFFFFFF
[2021-02-14.21:45:32] [Info] Counting by: 000000000000000000000000000000000000000000000000000000003B9ACA00
[2021-02-14.21:45:32] [Info] Generating random starting points
[2021-02-14.21:45:32] [Info] Initializing GeForce GTX 1050 Ti with Max-Q Design
[2021-02-14.21:45:32] [Info] Generating 30,564,352 starting points (1165.9MB)
[2021-02-14.21:45:32] [Info] Starting point sample: 000000000000000000000000000000000000000000000042B52E50A490840449 (71 bit range)
[2021-02-14.21:45:32] [Info] Starting point sample: 00000000000000000000000000000000000000000000007461BF351F482966CA (71 bit range)
[2021-02-14.21:45:32] [Info] Starting point sample: 0000000000000000000000000000000000000000000000680A44EE24609C7CFF (71 bit range)

is t ok or not?

Request

Hi, can you convert it into an exe that works?

opencl Compile issue please Help me

I am Getting This Error

root@dhl:/home/dhl/Desktop/AltCrack-master/bin# ./clBitCrack -i 1.txt
sh: 1: COLOR: not found

================= [+] Modified by IceLand : Use Hash160 file to search for all the altcoins ==============
Gift : bc1q39meky2mn5qjq704zz0nnkl0v7kj4uz6r529at

[2021-02-12.19:49:08] [Info] Compression: compressed
[2021-02-12.19:49:08] [Info] Starting at: 0000000000000000000000000000000000000000000000000000000000000001
[2021-02-12.19:49:08] [Info] Ending at: FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364140
[2021-02-12.19:49:08] [Info] Counting by: 0000000000000000000000000000000000000000000000000000000000000001
[2021-02-12.19:49:09] [Info] Compiling OpenCL kernels...
[2021-02-12.19:49:09] [Info] Initializing GeForce RTX 3090
[2021-02-12.19:49:09] [Info] Generating 262,144 starting points (10.0MB)
[2021-02-12.19:49:09] [Info] 10.0%
[2021-02-12.19:49:09] [Info] 20.0%
[2021-02-12.19:49:09] [Info] 30.0%
[2021-02-12.19:49:09] [Info] 40.0%
[2021-02-12.19:49:09] [Info] 50.0%
[2021-02-12.19:49:09] [Info] 60.0%
[2021-02-12.19:49:09] [Info] 70.0%
[2021-02-12.19:49:09] [Info] 80.0%
[2021-02-12.19:49:09] [Info] 90.0%
[2021-02-12.19:49:09] [Info] 100.0%
[2021-02-12.19:49:09] [Info] Done
[2021-02-12.19:49:09] [Info] Loading addresses from '1.txt'
terminate called after throwing an instance of 'std::__cxx11::basic_string<char, std::char_traits, std::allocator >'
Aborted (core dumped)
root@dhl:/home/dhl/Desktop/AltCrack-master/bin# nvcc --version
nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2019 NVIDIA Corporation
Built on Sun_Jul_28_19:07:16_PDT_2019
Cuda compilation tools, release 10.1, V10.1.243

Error detecting devices: CL_UNKNOWN_ERROR

./clBitCrack -h
[2023-06-08.20:21:24] [Error] Error detecting devices: CL_UNKNOWN_ERROR

I compiled Altcrack on ubuntu. Altcrack compiled but I have an error while I wanna run the program.
my graphic card is rx580

sudo lshw -c video
  *-display                 
       description: VGA compatible controller
       product: Ellesmere [Radeon RX 470/480/570/570X/580/580X/590]
       vendor: Advanced Micro Devices, Inc. [AMD/ATI]
       physical id: 0
       bus info: pci@0000:01:00.0
       logical name: /dev/fb0
       version: e7
       width: 64 bits
       clock: 33MHz
       capabilities: pm pciexpress msi vga_controller bus_master cap_list rom fb
       configuration: depth=32 driver=amdgpu latency=0 resolution=1440,900
       resources: irq:33 memory:e0000000-efffffff memory:f0000000-f01fffff ioport:e000(size=256) memory:f7e00000-f7e3ffff memory:c0000-dffff

more bloom filter

Hi.
can you help me add 3 more bloom filters.
I think you will also be interested in the result.

Thanks in advance.

Speed Improvement

Is it possible to modifiy this version of Bitcrack such as to implement the RIPEMD-160 like you did because the speed is better with this version as compared to your.

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.