Pages:
Author

Topic: BitCrack - A tool for brute-forcing private keys - page 57. (Read 74450 times)

member
Activity: 406
Merit: 45

I am not sure why debug is use time very long
but release version result is better

BoGnY/BitCrack debug = 1 M/s
BoGnY/BitCrack release = 58 M/s

brichard19/BitCrack = 11 M/s






member
Activity: 406
Merit: 45
ok, now I can compile some bitcrack



test compile with version
https://github.com/brichard19/BitCrack

still can not compile
have some problem


same machine with version
compile
https://github.com/BoGnY/BitCrack
result compile success with many warning yellow line

when using bitcrack this fork version
program waiting to generate point long time more than brichard19  (waiting before show 10% to 100%)


my result is reverse  BoGnY run only  1M/s  and brichard19 11M/s


full member
Activity: 1050
Merit: 219
Shooters Shoot...




Windows can install multiple CUDA Toolkit right?

CUDA Toolkit 11.2
CUDA Toolkit 10.2
Yes
member
Activity: 406
Merit: 45




Windows can install multiple CUDA Toolkit right?

CUDA Toolkit 11.2
CUDA Toolkit 10.2
member
Activity: 406
Merit: 45

You don't have OpenCL headers installed. They should be available from CUDA toolkit or AMD's OpenCL SDK.
 

I install CUDA Tools kits

https://developer.nvidia.com/cuda-downloads

and Intel® SDK For OpenCL, still not work

Where can I download correct OpenCL SDK

sp_
legendary
Activity: 2898
Merit: 1087
Team Black developer
This fork needs cuda 10.2
member
Activity: 406
Merit: 45
I played around with the code and managed a 50% increase in speed on pascal cards.


I forked this repository:

https://github.com/BoGnY/BitCrack

speed without sp-mod: 267MHASH. after, 400MHASH




How can I compile bitcrack on windows?

I use windows 10 and Visual Studio 2019

I install CUDA Toolkit 11.2 already
https://developer.nvidia.com/cuda-downloads

CUDA SDK and CUDA Toolkit is same right?

sp_
legendary
Activity: 2898
Merit: 1087
Team Black developer
I played around with the code and managed a 50% increase in speed on pascal cards.


I forked this repository:

https://github.com/BoGnY/BitCrack

speed without sp-mod: 267MHASH. after, 400MHASH


legendary
Activity: 1568
Merit: 6660
bitcoincleanup.com / bitmixlist.org

I try to compile BitCrack

using Visual Studio 2019

but found error

Severity   Code   Description   Project   File   Line   Suppression State
Error   C1083   Cannot open include file: 'CL/cl.h': No such file or directory   clUtil   \BitCrack\clUtil\clutil.h   8   

How I can fix it?


You don't have OpenCL headers installed. They should be available from CUDA toolkit or AMD's OpenCL SDK.

This file is bound to have 99,999,999,999,999,999,999 plus 1 (56BC75E2D630FFFFFh=99999999999999999999) lines of roughly 104 characters each. So to put it another way
one hundred quintillion lines times 104 bytes equals to 10,400,000,000,000,000,000,000 bytes. Using a conversion tool you end up with these numbers:

Code:
10,400,000,000,000,000,000,000 bytes (B) = 9685754776000.98 gigabytes (GB)
10,400,000,000,000,000,000,000 bytes (B) =    9458744898.44 terabytes (TB)
10,400,000,000,000,000,000,000 bytes (B) =       9237055.56 petabytes (PB)

I'm starting to think that even Google's combined storage capacity across all its services doesn't have 9 zettabytes of storage space. Youtube only has a mere couple exabytes of capacity for example.
full member
Activity: 141
Merit: 115
Hi guys ,

Can this tool or any modification of this be modified to write all private keys and respective uncompressed private keys and addresses) in range 1 to 56BC75E2D630FFFFF as a csv file . Since it generates 700 to xxxx million keys /s in some of its versions , so it will take many years on a single machine. But still looking for solutions. Writing regular outputs will consume too much time
So better it will save several millions or billions in some sort of memory operation and then write them once ,  till then next batch will find its space in memory to be written again.

Just before you set out on your endeavor it's just wise to do some planning.

Even assuming that time needed to complete your task is of no significance to you, it is worth a while to think about a storage capacity you will need to write results of your work to.
Basically you are asking for a csv file like this:

Code:
P.K. hex format   Private Key WIF(uncompressed)                      Bitcoin Address(uncompressed)

00000000000000001,5HpHagT65TZzG1PH3CSu63k8DbpvD8s5ip4nEB3kEsreAnchuDf,1EHNa6Q4Jz2uvNExL497mE43ikXhwF6kZm
00000000000000002,5HpHagT65TZzG1PH3CSu63k8DbpvD8s5ip4nEB3kEsreAvUcVfH,1LagHJk2FyCV2VzrNHVqg3gYG4TSYwDV4m
. . .
. . .
. . .
56BC75E2D630FFFFE,5HpHagT65TZzG1PH3CSu63k8DbpvD8s5ipWyAZRoQaWUwNpPfbk,1KxoAem9qcEgf9naPk7ETaWvx379Hw2YZX
56BC75E2D630FFFFF,5HpHagT65TZzG1PH3CSu63k8DbpvD8s5ipWyAZRoQaWUwZy1EeS,1MCzMYUdD68jXjtXtyv82uVRUvsHW7cNN9

This file is bound to have 99,999,999,999,999,999,999 plus 1 (56BC75E2D630FFFFFh=99999999999999999999) lines of roughly 104 characters each. So to put it another way
one hundred quintillion lines times 104 bytes equals to 10,400,000,000,000,000,000,000 bytes. Using a conversion tool you end up with these numbers:

Code:
10,400,000,000,000,000,000,000 bytes (B) = 9685754776000.98 gigabytes (GB)
10,400,000,000,000,000,000,000 bytes (B) =    9458744898.44 terabytes (TB)
10,400,000,000,000,000,000,000 bytes (B) =       9237055.56 petabytes (PB)

To make it easier for you to grasp all of what I stated above I'll paraphrase it:
To complete your task you have to be a rather affluent person. According to this wiki page 1 TB of storage costs $50 so you'd have to fork out $472,937,244,922.
But please worry NOT because I've got some good news for you. The wiki page I've just mentioned must be outdated and I found this little device of which you need 525,485,827 of them.
And that will ONLY set you back mere $209,936,843,020.

Good luck and all the best to you.

PS
Remember: PLANNING IS CRUCIAL



member
Activity: 406
Merit: 45

I try to compile BitCrack

using Visual Studio 2019

but found error

Severity   Code   Description   Project   File   Line   Suppression State
Error   C1083   Cannot open include file: 'CL/cl.h': No such file or directory   clUtil   \BitCrack\clUtil\clutil.h   8   

How I can fix it?
member
Activity: 260
Merit: 19
the right steps towerds the goal
save as .bat file place it in same folder with clbitcrack.. double click in .bat file and enjoy Smiley

@echo off
:loop
setlocal EnableDelayedExpansion
set /a "i1 = 0, i2 = 0" &for /l %%i in (0,1,23) do set /a "i1 = (i1 << 1) | (!random! & 1), i2 = (i2 << 1) | (!random! & 1)"
cmd /c exit /b %i1%
set "GO=%=exitcode:~2%
cmd /c exit /b %i2%
set "GO=%GO%%=exitcode:~2%
endlocal &set "GO=%GO:~2,7%%"
echo %GO%
start clBitCrack.exe  -i C:/Users/pc/Desktop/keys.txt -b 128 -t 256 -p 1024 -o C:/Users/pc/Desktop/found.txt --keyspace 800000000%GO%:ffffffffffffffff --stride 10000000
timeout /t 50
taskkill /f /im clBitCrack.exe
timeout /t 0
goto loop
member
Activity: 406
Merit: 45
Can anyone help to fix about random function can not using large number
problem  random.Next not work with 9223372036854775808 to 18446744073709551616

random.Next(9223372036854775808, 18446744073709551616)

Code:
UInt64 Base = 0x7FFFFFFFFFFFFFFF;
           
var random = new Random();

UInt64 high32Rnd = (UInt64)random.Next();
UInt64 low32Rnd = (UInt64)random.Next();

UInt64 rnd64 = (high32Rnd << 32) | low32Rnd;
rnd64 >>= 1;
rnd64 += Base;

Console.WriteLine(rnd64);

Thank you A-Bolt

I will try use this code

and if for puzzle #120
664613997892457936451903530140172287             
1329227995784915872903807060280344575           

and puzzle #160
730750818665451459101842416358141509827966271232
1461501637330902918203684832716283019655932542464

how to apply use same code?
legendary
Activity: 2314
Merit: 2300
Can anyone help to fix about random function can not using large number
problem  random.Next not work with 9223372036854775808 to 18446744073709551616

random.Next(9223372036854775808, 18446744073709551616)

Code:
UInt64 Base = 0x7FFFFFFFFFFFFFFF;
           
var random = new Random();

UInt64 high32Rnd = (UInt64)random.Next();
UInt64 low32Rnd = (UInt64)random.Next();

UInt64 rnd64 = (high32Rnd << 32) | low32Rnd;
rnd64 >>= 1;
rnd64 += Base;

Console.WriteLine(rnd64);
legendary
Activity: 1568
Merit: 6660
bitcoincleanup.com / bitmixlist.org
Can anyone help to fix about random function can not using large number
problem  random.Next not work with 9223372036854775808 to 18446744073709551616

random.Next(9223372036854775808, 18446744073709551616)

If it's returning negative numbers instead of positive, did you try changing the result variable of random.Next to "unsigned int" by making a cast?  Huh

I don't know much C# so I can't be much more helpful with this.
member
Activity: 406
Merit: 45
I try create small utility myself using C# copy sample code to

Can anyone help to fix about random function can not using large number
problem  random.Next not work with 9223372036854775808 to 18446744073709551616

random.Next(9223372036854775808, 18446744073709551616)

I would like to keep it to use and modify to use with kangaroo by re-write in.txt file automatic before run next kangaroo and modify for BSGS too

Console App (.NETFramework)

Program.cs
Code:
using System;
using System.Diagnostics;
using System.ComponentModel;
using System.IO;

namespace MyProcessSample
{
    class MyProcess
    {
        public static void Main()
        {
            try
            {
                using (Process myProcess = new Process())
                {
                    for (int i = 1; i <= 10000000; i++)
                    {
                        //myProcess.StartInfo.UseShellExecute = false;
                        myProcess.StartInfo.UseShellExecute = true;
                        string filepath = '"' + Directory.GetCurrentDirectory() + "\\clBitCrack.exe" + '"';
                        Console.WriteLine("The current directory is {0}", filepath);
                        myProcess.StartInfo.FileName = filepath;

                        var random = new Random();
                        int start = random.Next(92368, 18446370);
                        //int stop = random.Next(9223372036854775808, 18446744073709551616)
                        //long start = random.Next(9223372036854775808, 18446744073709551616);
                        //int step = 10000000;
                        //int stop = start + step;
                        myProcess.StartInfo.Arguments = " -c -u -o out.txt --keyspace " + start + ":+10000000 -i in.txt";
                        myProcess.StartInfo.CreateNoWindow = true;
                        Console.WriteLine(DateTime.Now.ToString("yyyy-MM-ddTHH:mm:ss.ffffffK"));
                        myProcess.Start();
                        myProcess.WaitForExit();
                        if (i == 10000000)
                            {
                                break;
                            }

                     }
                        Console.WriteLine("Press any key to exit.");
                        Console.ReadLine();
                        //Console.ReadKey();
                }
            }
            catch (Exception e)
            {
                Console.WriteLine(e.Message);
            }
        }
    }
}
member
Activity: 406
Merit: 45

Already exists...I'll go look for it for you
Works just like pool, but you can run it on your own PC/network. Works great
https://github.com/Etayson/BC_server-client

If that is not what you are looking for, look in thread, I posted a python script or look at the BSGS thread and use that script as example
 

Thank you WanderingPhilospher

I will try BC_server-client
full member
Activity: 1050
Merit: 219
Shooters Shoot...
help, can anybody help to code powershell script for random and run clBitCrack.exe

batch file work fine but limited about random command
powershell script may be work better, I try code but still error


batch file script
Code:
@echo on
:loop
echo  %date%-%time%
clBitCrack.exe -c -u -o out256-000.txt --keyspace %random%%random%%random%%random%:+10000000 -i in256-000.txt
echo  %date%-%time%
goto loop



powershell script (error)
Code:
Get-Date
DO{
"Starting Loop $a"
$a
$a++
$x = Get-Random -Minimum 20000000000000 -Maximum 1999999999999999
Start-Process "C:\bitcoin\clBitCrack.exe -c -u -o out.txt --keyspace $x:+10000000 -i in.txt"
} Until ($a -le 5)
Get-Date


actually I would like to create small utility but I can not code C++
may be look like ttdclient.exe from pool 64 bit

Already exists...I'll go look for it for you
Works just like pool, but you can run it on your own PC/network. Works great
https://github.com/Etayson/BC_server-client

If that is not what you are looking for, look in thread, I posted a python script or look at the BSGS thread and use that script as example

Code:
import sys, time, random, os
from datetime import datetime
random.seed(datetime.now())
arq1 = open('randomrange.bat', 'w')
arq2 = open('randomrangeschecked.txt', 'a')

for x in range(1):
    low  = 0x800ffffff
    high = 0xfff000000
    randp = str(hex( random.randrange( low, high ) )).lstrip("0x")
    arq1.write("start /min /wait cuBitcrack -d 1 -b 64 -t 128 -p 256 --keyspace " + randp + "0000000:+FFFFFFF -i 64.txt -o YOUFOUNDTHEKEY.txt")
    arq2.write(randp + "0000000" '\n')
    arq2.write(randp + "FFFFFFF" '\n')
arq1.close()

So there is the python script; adjust ranges accordingly. Then setup a batch file to call the .py first and then call your created batch file from the .py execution; in the example above it would be randomrange.bat.

Batch file example:

Code:
:while1
start /wait /min abovepythonscript.py
start /wait /min randomrange.bat

goto :while1
member
Activity: 406
Merit: 45
help, can anybody help to code powershell script for random and run clBitCrack.exe

batch file work fine but limited about random command
powershell script may be work better, I try code but still error


batch file script
Code:
@echo on
:loop
echo  %date%-%time%
clBitCrack.exe -c -u -o out256-000.txt --keyspace %random%%random%%random%%random%:+10000000 -i in256-000.txt
echo  %date%-%time%
goto loop



powershell script (error)
Code:
Get-Date
DO{
"Starting Loop $a"
$a
$a++
$x = Get-Random -Minimum 20000000000000 -Maximum 1999999999999999
Start-Process "C:\bitcoin\clBitCrack.exe -c -u -o out.txt --keyspace $x:+10000000 -i in.txt"
} Until ($a -le 5)
Get-Date


actually I would like to create small utility but I can not code C++
may be look like ttdclient.exe from pool 64 bit
member
Activity: 406
Merit: 45

I feel  bitcrack work by scan all range very slow
https://github.com/brichard19/BitCrack

I am not follow from beginning
brichard19 is original bitcrack right



bitcrack this version have random mode right, I will try compare
https://github.com/djarumlights/BitCrack



compare bitcrack with kangaroo with same keyspace, kangaroo work very fast and kangaroo found key fast
and bitcrack can not found key
I test with address that have pubkey and bitcrack   by bitcrack use address and kangaroo use pubkey both same bitcoin
kangaroo can found key on 2 hour but bit crack 24 hour still not found  (clbitcrack OpenCL version)

Pages:
Jump to: