Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date: Sun, 1 Apr 2018 09:52:48 +0200
From: "timajus ." <timajus@...il.com>
To: john-users@...ts.openwall.com
Subject: Re: OpenCL on Windows

First of all Happy Easter to both of you and thanks for the help.
@Solar:

Tried with your list and md5crypt: all good!

$ ./john.exe --format=md5crypt-opencl pw-fake-unix
Device 2: GeForce GTX 1050 Ti
Using default input encoding: UTF-8
Loaded 3107 password hashes with 3107 different salts (md5crypt-opencl,
crypt(3) $1$ [MD5 OpenCL])
Press 'q' or Ctrl-C to abort, almost any other key for status
ChangeMe         (u1530-md5)
badger           (u540-md5)
phantom          (u312-md5)
Thunder          (u1626-md5)
samIam           (u2618-md5)
donkey           (u2999-md5)
honda1           (u2162-md5)
thrasher         (u2789-md5)
...
3107g 0:00:00:18 DONE 3/3 (2018-04-01 09:42) 165.1g/s 196551p/s 203212c/s
203212C/s lykump3..nigls
Use the "--show" option to display all of the cracked passwords reliably
Session completed

Then

I've commented out the alarm(3) in bt.c , make -s clean && make -sj4 again,
started but no difference


$ ./john.exe --format=descrypt-opencl hashes.txt --verbosity=5
initUnicode(UNICODE, UTF-8/ISO-8859-1)
UTF-8 -> UTF-8 -> UTF-8
Device 2: GeForce GTX 1050 Ti
Using default input encoding: UTF-8
Loaded 627482 password hashes with 256 different salts (descrypt-opencl,
traditional crypt(3) [DES OpenCL])
Loaded 6 hashes with 4 different salts to test db from test vectors
Options used: -I ./kernels -cl-mad-enable -DSM_MAJOR=6 -DSM_MINOR=1
-cl-nv-verbose -D__GPU__ -DDEVICE_INFO=524306 -DSIZEOF_SIZE_T=8
-DDEV_VER_MAJOR=391 -DDEV_VER_MINOR=35 -D_OPENCL_COMPILER
$JOHN/kernels/DES_bs_hash_checking_kernel.cl
Build log:
ptxas info    : 0 bytes gmem
ptxas info    : Compiling entry function 'DES_bs_cmp' for 'sm_61'
ptxas info    : Function properties for DES_bs_cmp
ptxas         .     0 bytes stack frame, 0 bytes spill stores, 0 bytes
spill loads
ptxas info    : Used 141 registers, 392 bytes cmem[0], 48 bytes cmem[2]
ptxas info    : Compiling entry function 'DES_bs_cmp_high' for 'sm_61'
ptxas info    : Function properties for DES_bs_cmp_high
ptxas         .     256 bytes stack frame, 0 bytes spill stores, 0 bytes
spill loads
ptxas info    : Used 32 registers, 392 bytes cmem[0], 48 bytes cmem[2]
Options used: -I ./kernels -cl-mad-enable -DSM_MAJOR=6 -DSM_MINOR=1
-cl-nv-verbose -D__GPU__ -DDEVICE_INFO=524306 -DSIZEOF_SIZE_T=8
-DDEV_VER_MAJOR=391 -DDEV_VER_MINOR=35 -D_OPENCL_COMPILER -D ITER_COUNT=1
-D MASK_ENABLED=0 -D LOC_0=-1 -D LOC_1=-1 -D LOC_2=-1 -D LOC_3=-1 -D
IS_STATIC_GPU_MASK=0 -D CONST_CACHE_SIZE=65536
$JOHN/kernels/DES_bs_finalize_keys_kernel.cl
Build log:
ptxas info    : 0 bytes gmem
ptxas info    : Compiling entry function 'DES_bs_finalize_keys' for 'sm_61'
ptxas info    : Function properties for DES_bs_finalize_keys
ptxas         .     0 bytes stack frame, 0 bytes spill stores, 0 bytes
spill loads
ptxas info    : Used 32 registers, 352 bytes cmem[0], 24 bytes cmem[2]
Options used: -I ./kernels -cl-mad-enable -DSM_MAJOR=6 -DSM_MINOR=1
-cl-nv-verbose -D__GPU__ -DDEVICE_INFO=524306 -DSIZEOF_SIZE_T=8
-DDEV_VER_MAJOR=391 -DDEV_VER_MINOR=35 -D_OPENCL_COMPILER -D
WORK_GROUP_SIZE=0 -D index0=31 -D index1=16 -D index2=17 -D index3=18 -D
index4=3 -D index5=4 -D index6=3 -D index7=20 -D index8=21 -D index9=22 -D
index10=7 -D index11=8 -D index24=15 -D index25=0 -D index26=1 -D index27=2
-D index28=19 -D index29=20 -D index30=19 -D index31=4 -D index32=5 -D
index33=6 -D index34=23 -D index35=24 -D index48=63 -D index49=48 -D
index50=49 -D index51=50 -D index52=35 -D index53=36 -D index54=35 -D
index55=52 -D index56=53 -D index57=54 -D index58=39 -D index59=40 -D
index72=47 -D index73=32 -D index74=33 -D index75=34 -D index76=51 -D
index77=52 -D index78=51 -D index79=36 -D index80=37 -D index81=38 -D
index82=55 -D index83=56  $JOHN/kernels/DES_bs_kernel_h.cl
Build log:
ptxas info    : 0 bytes gmem
ptxas info    : Compiling entry function 'DES_bs_25' for 'sm_61'
ptxas info    : Function properties for DES_bs_25
ptxas         .     0 bytes stack frame, 0 bytes spill stores, 0 bytes
spill loads
ptxas info    : Used 236 registers, 344 bytes cmem[0]
Salt compiled from Source:910
GWS: 1048576, LWS: 128
Salt compiled from Binary:910
Salt compiled from Binary:2275
Salt compiled from Binary:990
Salt compiled from Binary:0
Updated internal tables and buffers for salt 910.
Updated internal tables and buffers for salt 2275.
Updated internal tables and buffers for salt 990.
Updated internal tables and buffers for salt 0.
Note: This format may be a lot faster with --mask acceleration (see
doc/MASK).
Options used: -I ./kernels -cl-mad-enable -DSM_MAJOR=6 -DSM_MINOR=1
-cl-nv-verbose -D__GPU__ -DDEVICE_INFO=524306 -DSIZEOF_SIZE_T=8
-DDEV_VER_MAJOR=391 -DDEV_VER_MINOR=35 -D_OPENCL_COMPILER
$JOHN/kernels/DES_bs_hash_checking_kernel.cl
Options used: -I ./kernels -cl-mad-enable -DSM_MAJOR=6 -DSM_MINOR=1
-cl-nv-verbose -D__GPU__ -DDEVICE_INFO=524306 -DSIZEOF_SIZE_T=8
-DDEV_VER_MAJOR=391 -DDEV_VER_MINOR=35 -D_OPENCL_COMPILER -D ITER_COUNT=1
-D MASK_ENABLED=0 -D LOC_0=-1 -D LOC_1=-1 -D LOC_2=-1 -D LOC_3=-1 -D
IS_STATIC_GPU_MASK=0 -D CONST_CACHE_SIZE=65536
$JOHN/kernels/DES_bs_finalize_keys_kernel.cl
Note: building per-salt kernels. This takes e.g. 2 hours for 4096 salts.
Salt compiled from Binary:258
Salt compiled from Binary:514
Alarm clock

Hope magnum would have some spare time to investigate.

Thank you again!
Tim





On Sat, Mar 31, 2018 at 10:05 PM, magnum <john.magnum@...hmail.com> wrote:

> On 2018-03-31 21:55, Solar Designer wrote:
>
>> I was hoping someone else would reply, but since no one did yet let me
>> reply with whatever little info I have on this:
>>
>
> I didn't really have a good idea and I don't touch Windows...
>
> On Thu, Mar 29, 2018 at 08:30:52PM +0200, timajus . wrote:
>>
>>> Alarm clock
>>>
>>> $  echo $?
>>> 142
>>>
>>
>> This looks like an incompatibility of our code with Cygwin, and in
>> particular I suspect the uses of the alarm timer in bt.c, which is
>> probably invoked by a call to create_perfect_hash_table() from
>> opencl_DES_bs_plug.c.  You may try to comment out or delete the
>> "alarm(3);" line in bt.c (currently line 396).
>>
>
> ...but this sounds totally plausible! I will have look at that soon.
>
> magnum
>
>

Powered by blists - more mailing lists

Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.