# KeyHunt-Cuda
_Hunt for Bitcoin private keys._
This is a modified version of VanitySearch by [JeanLucPons](https://github.com/JeanLucPons/VanitySearch/).
Renamed from VanitySearch to KeyHunt (inspired from [keyhunt](https://github.com/albertobsd/keyhunt) by albertobsd).
A lot of gratitude to all the developers whose codes has been used here.
# Features
- For Bitcoin use ```--coin BTC``` and for Ethereum use ```--coin ETH```
- Single address(rmd160 hash) for BTC or ETH address searching with mode ```-m ADDREES```
- Multiple addresses(rmd160 hashes) or ETH addresses searching with mode ```-m ADDREESES```
- XPoint[s] mode is applicable for ```--coin BTC``` only
- Single xpoint searching with mode ```-m XPOINT```
- Multiple xpoint searching with mode ```-m XPOINTS```
- For XPoint[s] mode use x point of the public key, without 02 or 03 prefix(64 chars).
- Cuda only.
# Usage
- For multiple addresses or xpoints, file format must be binary with sorted data.
- To convert Bitcoin addresses list(text format) to rmd160 hashes binary file use provided python script ```addresses_to_hash160.py```
- To convert pubkeys list(text format) to xpoints binary file use provided python script ```pubkeys_to_xpoint.py```
- To convert Ethereum addresses list(text format) to keccak160 hashes binary file use provided python script ```eth_addresses_to_bin.py```
- After getting binary files from python scripts, use ```BinSort``` tool provided with KeyHunt-Cuda to sort these binary files.
- Don't use XPoint[s] mode with ```uncompressed``` compression type.
- CPU and GPU can not be used together, because the program divides the whole input range into equal parts for all the threads, so use either CPU or GPU so that the whole range can increment by all the threads with consistency.
- Minimum entries for bloom filter is >= 2.
## addresses_to_hash160.py
```
python3 addresses_to_hash160.py addresses_in.txt hash160_out.bin
```
## pubkeys_to_xpoint.py
```
python3 pubkeys_to_xpoint.py pubkeys_in.txt xpoints_out.bin
```
## eth_addresses_to_bin.py
```
python3 eth_addresses_to_bin.py eth_addresses_in.txt eth_addresses_out.bin
```
## BinSort
For hash160 and keccak160 ```length``` is ```20``` and for xpoint ```length``` is ```32```.
```
BinSort.exe
Usage: BinSort.exe length in_file out_file
```
## KeyHunt-Cuda
```
KeyHunt-Cuda.exe -h
KeyHunt-Cuda [OPTIONS...] [TARGETS]
Where TARGETS is one address/xpont, or multiple hashes/xpoints file
-h, --help : Display this message
-c, --check : Check the working of the codes
-u, --uncomp : Search uncompressed points
-b, --both : Search both uncompressed or compressed points
-g, --gpu : Enable GPU calculation
--gpui GPU ids: 0,1,... : List of GPU(s) to use, default is 0
--gpux GPU gridsize: g0x,g0y,g1x,g1y,... : Specify GPU(s) kernel gridsize, default is 8*(Device MP count),128
-t, --thread N : Specify number of CPU thread, default is number of core
-i, --in FILE : Read rmd160 hashes or xpoints from FILE, should be in binary format with sorted
-o, --out FILE : Write keys to FILE, default: Found.txt
-m, --mode MODE : Specify search mode where MODE is
ADDRESS : for single address
ADDRESSES: for multiple hashes/addresses
XPOINT : for single xpoint
XPOINTS : for multiple xpoints
--coin BTC/ETH : Specify Coin name to search
BTC: available mode :-
ADDRESS, ADDRESSES, XPOINT, XPOINTS
ETH: available mode :-
ADDRESS, ADDRESSES
-l, --list : List cuda enabled devices
--range KEYSPACE : Specify the range:
START:END
START:+COUNT
START
:END
:+COUNT
Where START, END, COUNT are in hex format
-r, --rkey Rkey : Random key interval in MegaKeys, default is disabled
-v, --version : Show version
```
CPU mode:
```
KeyHunt-Cuda.exe -t 4 --gpui 0 --gpux 256,256 -m addresses --coin BTC --range 1:1fffffffff -i puzzle_1_37_hash160_out_sorted.bin
KeyHunt-Cuda v1.07
COMP MODE : COMPRESSED
COIN TYPE : BITCOIN
SEARCH MODE : Multi Address
DEVICE : CPU
CPU THREAD : 4
SSE : YES
RKEY : 0 Mkeys
MAX FOUND : 65536
HASH160 FILE : puzzle_1_37_hash160_out_sorted.bin
OUTPUT FILE : Found.txt
Loaded : 37 addresses
Bloom at 000001C84206BB70
Version : 2.1
Entries : 74
Error : 0.0000010000
Bits : 2127
Bits/Elem : 28.755175
Bytes : 266 (0 MB)
Hash funcs : 20
Start Time : Mon Jul 19 01:09:22 2021
Global start : 1 (1 bit)
Global end : 1FFFFFFFFF (37 bit)
Global range : 1FFFFFFFFE (37 bit)
=================================================================================
PubAddress: 1BgGZ9tcN4rm9KBzDn7KprQz87SZ26SAMH
Priv (WIF): p2pkh:KwDiBf89QgGbjEhKnhXJuH7LrciVrZi3qYjgd9M7rFU73sVHnoWn
Priv (HEX): 1
PubK (HEX): 0279BE667EF9DCBBAC55A06295CE870B07029BFCDB2DCE28D959F2815B16F81798
=================================================================================
=================================================================================
PubAddress: 1CUNEBjYrCn2y1SdiUMohaKUi4wpP326Lb
Priv (WIF): p2pkh:KwDiBf89QgGbjEhKnhXJuH7LrciVrZi3qYjgd9M7rFU74sHUHy8S
Priv (HEX): 3
PubK (HEX): 02F9308A019258C31049344F85F89D5229B531C845836F99B08601F113BCE036F9
=================================================================================
[00:00:02] [CPU+GPU: 5.06 Mk/s] [GPU: 0.00 Mk/s] [C: 0.007474 %] [R: 0] [T: 10,272,768 (24 bit)] [F: 2]
....
```
```
KeyHunt-Cuda.exe -t 4 --gpui 0 --gpux 256,256 -m address --coin eth --range 8000000:fffffff 0xfda5c442e76a95f96c09782f1a15d3b58e32404f
KeyHunt-Cuda v1.07
COIN TYPE : ETHEREUM
SEARCH MODE : Single Address
DEVICE : CPU
CPU THREAD : 4
SSE : NO
RKEY : 0 Mkeys
MAX FOUND : 65536
ETH ADDRESS : 0xfda5c442e76a95f96c09782f1a15d3b58e32404f
OUTPUT FILE : Found.txt
Start Time : Fri Jul 23 01:32:59 2021
Global start : 8000000 (28 bit)
Global end : FFFFFFF (28 bit)
Global range : 7FFFFFF (27 bit)
[00:00:32] [CPU+GPU: 3.19 Mk/s] [GPU: 0.00 Mk/s] [C: 77.716065 %] [R: 0] [T: 104,308,736 (27 bit)] [F: 0]
=================================================================================
PubAddress: 0xfda5c442e76a95f96c09782f1a15d3b58e32404f
Priv (HEX): D916CE8
PubK (HEX): E9E661838A96A65331637E2A3E948DC0756E5009E7CB5C36664D9B72DD18C0A709F531540A4CA59F50F93B8BF7B0C060045754AAAE7CE1BEA5A136C0D5874B97
=================================================================================
[00:00:34] [CPU+GPU: 3.19 Mk/s] [GPU: 0.00 Mk/s] [C: 82.519532 %] [R: 0] [T: 110,755,840 (27 bit)] [F: 1]
BYE
```
### GPU mode:
## Multiple addresses mode:
```
KeyHunt-Cuda.exe -t 0 -g --gpui 0 --gpux 256,256 -m addresses --coin BTC -o Found.txt --range 1:1fffffffff -i puzzle_1_37_hash160_out_sorted.bin
KeyHunt-Cuda v1.07
COMP MODE : COMPRESSED
COIN TYPE : BITCOIN
SEARCH MODE : Multi Address
DEVICE : GPU
CPU THREAD : 0
GPU IDS : 0
GPU GRIDSIZE : 256x256
SSE : YES
RKEY : 0 Mkeys
MAX FOUND : 65536
HASH160 FILE : puzzle_1_37_hash160_out_sorted.bin
OUTPUT FILE : Found.txt
Loa
没有合适的资源?快使用搜索试试~ 我知道了~
私钥碰撞源码&区块链Ð
共119个文件
h:25个
cpp:21个
obj:21个
需积分: 0 23 下载量 180 浏览量
2024-03-03
11:15:53
上传
评论 2
收藏 8.55MB RAR 举报
温馨提示
源码&复制包 供参考学习
资源推荐
资源详情
资源评论
收起资源包目录
私钥碰撞源码&区块链Ð (119个子文件)
xpoints_1_37_out.bin 1KB
xpoints_1_37_out_sorted.bin 1KB
puzzle_1_37_hash160_out_sorted.bin 740B
puzzle_1_37_addresses_eth.bin 740B
puzzle_1_37_hash160_out.bin 740B
puzzle_1_37_addresses_eth_sorted.bin 740B
GPUEngine.cu.cache 1KB
Int.cpp 39KB
KeyHunt.cpp 35KB
IntMod.cpp 29KB
sha256_sse.cpp 23KB
SECP256K1.cpp 23KB
sha256.cpp 21KB
Main.cpp 17KB
ripemd160_sse.cpp 14KB
sha512.cpp 11KB
ripemd160.cpp 11KB
Bloom.cpp 8KB
BinSort.cpp 5KB
Timer.cpp 5KB
keccak160.cpp 4KB
Base58.cpp 4KB
Random.cpp 3KB
GPUGenerate.cpp 2KB
Point.cpp 2KB
IntGroup.cpp 1KB
CmdParse.cpp 1KB
GmpUtil.cpp 399B
GPUEngine.cu 26KB
GPUEngine.cu336720914.deps 38KB
cudart64_101.dll 399KB
KeyHunt-Cuda.exe 13.29MB
BinSort.exe 16KB
KeyHunt-Cuda.vcxproj.filters 5KB
KeyHunt-Cuda.filters 4KB
BinSort.vcxproj.filters 959B
GPUGroup.h 191KB
gmpxx.h 126KB
GPUHash - Copy (2).h 97KB
gmp.h 82KB
GPUHash - Copy.h 76KB
GPUCompute.h 36KB
GPUHash.h 26KB
GPUMath.h 23KB
Int.h 12KB
GPUBase58.h 4KB
GPUEngine.h 3KB
KeyHunt.h 3KB
SECP256k1.h 3KB
ripemd160.h 2KB
Base58.h 2KB
sha256.h 1KB
Timer.h 1KB
Bloom.h 1KB
sha512.h 1KB
Point.h 1KB
IntGroup.h 962B
CmdParse.h 843B
Random.h 839B
keccak160.h 101B
GmpUtil.h 87B
libgmpd.idb 963KB
KeyHunt-Cuda.lastbuildstate 149B
libgmpd.lib 5.82MB
gmp.lib 3.23MB
libgmp.lib 3.23MB
LICENSE 34KB
KeyHunt-Cuda.log 19KB
KeyHunt-Cuda.Build.CppClean.log 49B
Makefile 3KB
Makefile 89B
README.md 19KB
GPUEngine.cu.obj 13.23MB
sha256_sse.obj 1.3MB
Main.obj 1.21MB
KeyHunt.obj 1.17MB
Bloom.obj 914KB
GmpUtil.obj 790KB
ripemd160_sse.obj 592KB
Int.obj 534KB
SECP256K1.obj 479KB
CmdParse.obj 452KB
Timer.obj 439KB
sha256.obj 437KB
IntMod.obj 395KB
Point.obj 373KB
Base58.obj 367KB
ripemd160.obj 364KB
GPUGenerate.obj 353KB
sha512.obj 352KB
IntGroup.obj 349KB
keccak160.obj 21KB
Random.obj 5KB
vc142.pdb 1004KB
libgmpd.pdb 956KB
libgmp.pdb 860KB
pubkeys_to_xpoint.py 1006B
pubkeys_to_xpoint.py 1006B
addresses_to_hash160.py 919B
addresses_to_hash160.py 919B
共 119 条
- 1
- 2
资源评论
weixin_37238417
- 粉丝: 1
- 资源: 1
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功