brichard19 / BitCrack

A tool for cracking Bitcoin private keys
MIT License
678 stars 450 forks source link

compile on ubuntu 20.04 #374

Open mirameshs opened 1 year ago

mirameshs commented 1 year ago

how to compile https://github.com/brichard19/BitCrack on Ubuntu 20.04?


**sudo make**
make --directory util
make[1]: Entering directory '/home/mahdi/BitCrack/util'
for file in util.cpp ; do\
        g++ -c $file  -I/home/mahdi/BitCrack/util  -I/home/mahdi/BitCrack/AddressUtil  -I/home/mahdi/BitCrack/CmdParse  -I/home/mahdi/BitCrack/CryptoUtil  -I/home/mahdi/BitCrack/KeyFinderLib  -I/home/mahdi/BitCrack/CLKeySearchDevice  -I/home/mahdi/BitCrack/CudaKeySearchDevice  -I/home/mahdi/BitCrack/cudaMath  -I/home/mahdi/BitCrack/clUtil  -I/home/mahdi/BitCrack/cudaUtil  -I/home/mahdi/BitCrack/secp256k1lib  -I/home/mahdi/BitCrack/Logger  -I/home/mahdi/BitCrack/embedcl -O2 -std=c++11;\
done
util.cpp: In function ‘std::string util::formatThousands(uint64_t)’:
util.cpp:60:20: warning: format ‘%lld’ expects argument of type ‘long long int’, but argument 3 has type ‘uint64_t’ {aka ‘long unsigned int’} [-Wformat=]
   60 |   sprintf(buf, "%lld", x);
      |                 ~~~^   ~
      |                    |   |
      |                    |   uint64_t {aka long unsigned int}
      |                    long long int
      |                 %ld
util.cpp: In function ‘uint64_t util::parseUInt64(std::string)’:
util.cpp:109:29: warning: format ‘%llx’ expects argument of type ‘long long unsigned int*’, but argument 3 has type ‘uint64_t*’ {aka ‘long unsigned int*’} [-Wformat
]
  109 |    if(sscanf(s.c_str(), "%llx", &val) != 1) {
      |                          ~~~^   ~~~~
      |                             |   |
      |                             |   uint64_t* {aka long unsigned int*}
      |                             long long unsigned int*
      |                          %lx
util.cpp:113:29: warning: format ‘%lld’ expects argument of type ‘long long int*’, but argument 3 has type ‘uint64_t*’ {aka ‘long unsigned int*’} [-Wformat=]
  113 |    if(sscanf(s.c_str(), "%lld", &val) != 1) {
      |                          ~~~^   ~~~~
      |                             |   |
      |                             |   uint64_t* {aka long unsigned int*}
      |                             long long int*
      |                          %ld
util.cpp: In function ‘std::string util::format(uint64_t)’:
util.cpp:242:20: warning: format ‘%lld’ expects argument of type ‘long long int’, but argument 3 has type ‘uint64_t’ {aka ‘long unsigned int’} [-Wformat=]
  242 |   sprintf(buf, "%lld", (uint64_t)value);
      |                 ~~~^   ~~~~~~~~~~~~~~~
      |                    |   |
      |                    |   uint64_t {aka long unsigned int}
      |                    long long int
      |                 %ld
mkdir -p /home/mahdi/BitCrack/lib
ar rvs /home/mahdi/BitCrack/lib/libutil.a util.o
ar: creating /home/mahdi/BitCrack/lib/libutil.a
a - util.o
make[1]: Leaving directory '/home/mahdi/BitCrack/util'
make --directory CryptoUtil
make[1]: Entering directory '/home/mahdi/BitCrack/CryptoUtil'
for file in Rng.cpp ripemd160.cpp checksum.cpp hash.cpp sha256.cpp ; do\
        g++ -c $file  -I/home/mahdi/BitCrack/util  -I/home/mahdi/BitCrack/AddressUtil  -I/home/mahdi/BitCrack/CmdParse  -I/home/mahdi/BitCrack/CryptoUtil  -I/home/mahdi/BitCrack/KeyFinderLib  -I/home/mahdi/BitCrack/CLKeySearchDevice  -I/home/mahdi/BitCrack/CudaKeySearchDevice  -I/home/mahdi/BitCrack/cudaMath  -I/home/mahdi/BitCrack/clUtil  -I/home/mahdi/BitCrack/cudaUtil  -I/home/mahdi/BitCrack/secp256k1lib  -I/home/mahdi/BitCrack/Logger  -I/home/mahdi/BitCrack/embedcl -O2 -std=c++11;\
done
mkdir -p /home/mahdi/BitCrack/lib
ar rvs /home/mahdi/BitCrack/lib/libcryptoutil.a *.o
ar: creating /home/mahdi/BitCrack/lib/libcryptoutil.a
a - Rng.o
a - checksum.o
a - hash.o
a - ripemd160.o
a - sha256.o
make[1]: Leaving directory '/home/mahdi/BitCrack/CryptoUtil'
make --directory secp256k1lib
make[1]: Entering directory '/home/mahdi/BitCrack/secp256k1lib'
for file in secp256k1.cpp ; do\
        g++ -c $file  -I/home/mahdi/BitCrack/util  -I/home/mahdi/BitCrack/AddressUtil  -I/home/mahdi/BitCrack/CmdParse  -I/home/mahdi/BitCrack/CryptoUtil  -I/home/mahdi/BitCrack/KeyFinderLib  -I/home/mahdi/BitCrack/CLKeySearchDevice  -I/home/mahdi/BitCrack/CudaKeySearchDevice  -I/home/mahdi/BitCrack/cudaMath  -I/home/mahdi/BitCrack/clUtil  -I/home/mahdi/BitCrack/cudaUtil  -I/home/mahdi/BitCrack/secp256k1lib  -I/home/mahdi/BitCrack/Logger  -I/home/mahdi/BitCrack/embedcl -O2 -std=c++11 -L/home/mahdi/BitCrack/lib -lcryptoutil;\
done
mkdir -p /home/mahdi/BitCrack/lib
ar rvs /home/mahdi/BitCrack/lib/libsecp256k1.a secp256k1.o
ar: creating /home/mahdi/BitCrack/lib/libsecp256k1.a
a - secp256k1.o
make[1]: Leaving directory '/home/mahdi/BitCrack/secp256k1lib'
make --directory AddressUtil
make[1]: Entering directory '/home/mahdi/BitCrack/AddressUtil'
for file in Base58.cpp hash.cpp ; do\
        g++ -c $file  -I/home/mahdi/BitCrack/util  -I/home/mahdi/BitCrack/AddressUtil  -I/home/mahdi/BitCrack/CmdParse  -I/home/mahdi/BitCrack/CryptoUtil  -I/home/mahdi/BitCrack/KeyFinderLib  -I/home/mahdi/BitCrack/CLKeySearchDevice  -I/home/mahdi/BitCrack/CudaKeySearchDevice  -I/home/mahdi/BitCrack/cudaMath  -I/home/mahdi/BitCrack/clUtil  -I/home/mahdi/BitCrack/cudaUtil  -I/home/mahdi/BitCrack/secp256k1lib  -I/home/mahdi/BitCrack/Logger  -I/home/mahdi/BitCrack/embedcl -O2 -std=c++11;\
done
mkdir -p /home/mahdi/BitCrack/lib
ar rvs /home/mahdi/BitCrack/lib/libaddressutil.a *.o
ar: creating /home/mahdi/BitCrack/lib/libaddressutil.a
a - Base58.o
a - hash.o
make[1]: Leaving directory '/home/mahdi/BitCrack/AddressUtil'
make --directory CmdParse
make[1]: Entering directory '/home/mahdi/BitCrack/CmdParse'
for file in CmdParse.cpp ; do\
        g++ -c $file  -I/home/mahdi/BitCrack/util  -I/home/mahdi/BitCrack/AddressUtil  -I/home/mahdi/BitCrack/CmdParse  -I/home/mahdi/BitCrack/CryptoUtil  -I/home/mahdi/BitCrack/KeyFinderLib  -I/home/mahdi/BitCrack/CLKeySearchDevice  -I/home/mahdi/BitCrack/CudaKeySearchDevice  -I/home/mahdi/BitCrack/cudaMath  -I/home/mahdi/BitCrack/clUtil  -I/home/mahdi/BitCrack/cudaUtil  -I/home/mahdi/BitCrack/secp256k1lib  -I/home/mahdi/BitCrack/Logger  -I/home/mahdi/BitCrack/embedcl -O2 -std=c++11;\
done
mkdir -p /home/mahdi/BitCrack/lib
ar rvs /home/mahdi/BitCrack/lib/libcmdparse.a CmdParse.o
ar: creating /home/mahdi/BitCrack/lib/libcmdparse.a
a - CmdParse.o
make[1]: Leaving directory '/home/mahdi/BitCrack/CmdParse'
make --directory Logger
make[1]: Entering directory '/home/mahdi/BitCrack/Logger'
for file in Logger.cpp ; do\
        g++ -c $file  -I/home/mahdi/BitCrack/util  -I/home/mahdi/BitCrack/AddressUtil  -I/home/mahdi/BitCrack/CmdParse  -I/home/mahdi/BitCrack/CryptoUtil  -I/home/mahdi/BitCrack/KeyFinderLib  -I/home/mahdi/BitCrack/CLKeySearchDevice  -I/home/mahdi/BitCrack/CudaKeySearchDevice  -I/home/mahdi/BitCrack/cudaMath  -I/home/mahdi/BitCrack/clUtil  -I/home/mahdi/BitCrack/cudaUtil  -I/home/mahdi/BitCrack/secp256k1lib  -I/home/mahdi/BitCrack/Logger  -I/home/mahdi/BitCrack/embedcl -O2 -std=c++11;\
done
mkdir -p /home/mahdi/BitCrack/lib
ar rvs /home/mahdi/BitCrack/lib/liblogger.a Logger.o
ar: creating /home/mahdi/BitCrack/lib/liblogger.a
a - Logger.o
make[1]: Leaving directory '/home/mahdi/BitCrack/Logger'
make --directory KeyFinderLib
make[1]: Entering directory '/home/mahdi/BitCrack/KeyFinderLib'
for file in KeyFinder.cpp ; do\
        g++ -c $file  -I/home/mahdi/BitCrack/util  -I/home/mahdi/BitCrack/AddressUtil  -I/home/mahdi/BitCrack/CmdParse  -I/home/mahdi/BitCrack/CryptoUtil  -I/home/mahdi/BitCrack/KeyFinderLib  -I/home/mahdi/BitCrack/CLKeySearchDevice  -I/home/mahdi/BitCrack/CudaKeySearchDevice  -I/home/mahdi/BitCrack/cudaMath  -I/home/mahdi/BitCrack/clUtil  -I/home/mahdi/BitCrack/cudaUtil  -I/home/mahdi/BitCrack/secp256k1lib  -I/home/mahdi/BitCrack/Logger  -I/home/mahdi/BitCrack/embedcl -I/usr/local/cuda/include -O2 -std=c++11;\
done
ar rvs /home/mahdi/BitCrack/lib/libkeyfinder.a *.o
ar: creating /home/mahdi/BitCrack/lib/libkeyfinder.a
a - KeyFinder.o
make[1]: Leaving directory '/home/mahdi/BitCrack/KeyFinderLib'
make --directory KeyFinder
make[1]: Entering directory '/home/mahdi/BitCrack/KeyFinder'
make[1]: Nothing to be done for 'all'.
make[1]: Leaving directory '/home/mahdi/BitCrack/KeyFinder'
make --directory AddrGen
make[1]: Entering directory '/home/mahdi/BitCrack/AddrGen'
g++ -o addrgen.bin main.cpp  -I/home/mahdi/BitCrack/util  -I/home/mahdi/BitCrack/AddressUtil  -I/home/mahdi/BitCrack/CmdParse  -I/home/mahdi/BitCrack/CryptoUtil  -I/home/mahdi/BitCrack/KeyFinderLib  -I/home/mahdi/BitCrack/CLKeySearchDevice  -I/home/mahdi/BitCrack/CudaKeySearchDevice  -I/home/mahdi/BitCrack/cudaMath  -I/home/mahdi/BitCrack/clUtil  -I/home/mahdi/BitCrack/cudaUtil  -I/home/mahdi/BitCrack/secp256k1lib  -I/home/mahdi/BitCrack/Logger  -I/home/mahdi/BitCrack/embedcl -I/usr/local/cuda/include -O2 -std=c++11 -L/home/mahdi/BitCrack/lib -laddressutil -lsecp256k1 -lcryptoutil -lsecp256k1 -lutil -lcmdparse
mkdir -p /home/mahdi/BitCrack/bin
cp addrgen.bin /home/mahdi/BitCrack/bin/addrgen
make[1]: Leaving directory '/home/mahdi/BitCrack/AddrGen'

so where is Bitcrack file to run ?

jmtomes2001 commented 11 months ago

It's in /home/mahdi/BitCrack/bin
in the bin dir use command (change "xx" to cl or cu) ./xxBitCrack 1FshYsUh3mqgsG29XpZ23eLjWV8Ur3VwH

Vladislav3377 commented 3 months ago

Salaam alaikum to everyone! Hello everyone! Bitcoin is a scam! On March 19, 2024, 865 bitcoins were sold on the exchange at a price of $8,000! On other exchanges the price was $70,000! Let's create a community and sequentially select the private key of the largest bts address! And when we find it, Bitcoin will collapse! Thanks in advance everyone!