mirror of
https://github.com/openwall/john.git
synced 2026-12-03 18:45:21 +07:00
[GH-ISSUE #438] john wpa-opencl compile failure on ATI RV710 (ATI Mobility Radeon HD 4300/4500 Series) #168
Labels
No labels
bug
core branch
documentation
enhancement
enhancement
fixed - pending verify
fuzz bug
good first issue
invalid
invalid
maintenance/cleanup
new cracking mode
new format
new tool
non-trivial
notes/external issues
portability
question
RFC / discussion
testing
WONTFIX
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
openwall/john#168
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @DarkJester on GitHub (Dec 20, 2013).
Original GitHub issue: https://github.com/openwall/john/issues/438
whilst attempting to run ./john -w:password.lst -format=wpapsk-opencl i get an opencl error the same opencl installation works fine with pyrit im using the fxglr-legacy driver backported from debian wheezy and the amd sdk 2.7
@magnumripper commented on GitHub (Dec 20, 2013):
Is this an old card or driver? What's the output of
--list=opencl-devices?@magnumripper commented on GitHub (Dec 20, 2013):
@gat3way is this pragma line needed at all?
@DarkJester commented on GitHub (Dec 20, 2013):
@magnumripper commented on GitHub (Dec 20, 2013):
That device/driver is really outdated, supporting only OpenCL 1.0. We can work around it but it won't be very fast. Try commenting out line 386 of src/kernels/wpapsk_kernel.cl and see if it works at all without it?
@DarkJester commented on GitHub (Dec 25, 2013):
i get this output and then a blinking cursor
root@kali:~/bleeding-jumbo/run# ./john -test -format=wpapsk-opencl
Will run 4 OpenMP threads
Device 0: ATI RV710 (ATI Mobility Radeon HD 4300/4500 Series)
@magnumripper commented on GitHub (Dec 26, 2013):
It never ends? I'm afraid your device [driver] is too old. We might have a chance to support it but I'm not sure how to detect the situation.
@magnumripper commented on GitHub (Dec 26, 2013):
Possibly fixed in
f7189d8. @DarkJester please try out latest code and report back.@DarkJester commented on GitHub (Dec 27, 2013):
it still hangs with a blinking cursor... ps reports john using 98.8% cpu also. other opencl formats fail now also
root@kali:~/JohnTheRipper-bleeding-jumbo/run# ./john -test -format=Raw-MD5-opencl
Device 0: ATI RV710 (ATI Mobility Radeon HD 4300/4500 Series)
OpenCL error (CL_INVALID_EVENT) in file (common-opencl.c) at line (1221) - (Failed to get profiling info)
EDIT SOME opencl formats now fail
root@kali:~/JohnTheRipper-bleeding-jumbo/run# ./john -test -format=ntlmv2-opencl
Device 0: ATI RV710 (ATI Mobility Radeon HD 4300/4500 Series)
Local worksize (LWS) 32, Global worksize (GWS) 65536
Benchmarking: ntlmv2-opencl, NTLMv2 C/R [MD4 HMAC-MD5 OpenCL 4x]... DONE
Many salts: 6229K c/s real, 209715K c/s virtual
Only one salt: 3563K c/s real, 24466K c/s virtual
@magnumripper commented on GitHub (Dec 27, 2013):
OK. The now failing formats are likely due to need of rebooting after wpapsk hang. I guess we're out of luck with that driver. The format runs just fine on other old devices, weak or not.
@DarkJester commented on GitHub (Dec 27, 2013):
i rebooted raw-md5 still fails with the same error ntlmv2 still works
@magnumripper commented on GitHub (Dec 27, 2013):
You could try changing line 87 in opencl/wpapsk_kernel.cl like this:
This switches to different SHA-1 code that we normally use for nvidia, but it's not really nvidia specific.
@magnumripper commented on GitHub (Dec 27, 2013):
Did raw-md5 work fine before? Nothing has changed in that format.
@magnumripper commented on GitHub (Dec 27, 2013):
Another thing you can try is supplying --test=0 instead of just --test. This runs a quicker self-test, no benchmark. If that works but the benchmark fails, you might work around the problem by supplying LWS and/or GWS environment variables when running wpapsk. Eg:
If this works, try doubling GWS until you get max. speed and no hang. If you are really lucky, only LWS has to be set and GWS can auto-tune:
@DarkJester commented on GitHub (Dec 27, 2013):
i rolled back to the older code seems raw-md5 is broken in that as well. its strange how ntlmv2-opencl works. setting LWS/GWS and editing the wpa kernel didn't help.
@DarkJester commented on GitHub (Dec 27, 2013):
@DarkJester commented on GitHub (Dec 27, 2013):
i can give ssh to this box if u want.
@magnumripper commented on GitHub (Dec 27, 2013):
Those warnings are from descrypt-opencl. That format never handled odd/weak devices well.
Re: ssh, that would probably help a lot, but not right now. Maybe later!
BTW I assume you have similar problems with encfs-opencl and krb5pa-sha1-opencl becuase their kernels are very similar to wpapsk. Or are they working?
@magnumripper commented on GitHub (Dec 27, 2013):
Also, have you tried oclHashcat's wpapsk on this machine?
@DarkJester commented on GitHub (Dec 27, 2013):
hashcat works ok
root@kali:~# hashcat -m 2500 -a3 /root/wpa-Induction.hccap ?d?d?d?d?d?d?d?d
This copy of hashcat will expire on 01.01.2013. Please upgrade to continue using hashcat.
Initializing hashcat v0.44 by atom with 8 threads and 32mb segment-size...
Added hashes from file /root/wpa-Induction.hccap: 1 (1 salts)
Activating quick-digest mode for single-hash with salt
NOTE: press enter for status-screen
Input.Mode: Mask (?d)
Index.....: 0/1 (segment), 10 (words), 0 (bytes)
Recovered.: 0/1 hashes, 0/1 salts
Speed/sec.: - plains, - words
Progress..: 10/10 (100.00%)
Running...: --:--:--:--
Estimated.: --:--:--:--
hashcat+ fails
root@kali:~# /usr/bin/oclhashcat+ -m 2500 -a3 /root/wpa-Induction.hccap ?d?d?d?d?d?d?d?d
oclHashcat-plus v0.15 by atom starting...
Hashes: 1 total, 1 unique salts, 1 unique digests
Bitmaps: 8 bits, 256 entries, 0x000000ff mask, 1024 bytes
Workload: 16 loops, 8 accel
Watchdog: Temperature abort trigger disabled
Watchdog: Temperature retain trigger disabled
Device #1: ATI RV710, 256MB, 550Mhz, 2MCU
Device #1: Kernel ./kernels/4098/m2500.ATI RV710_923.1_CAL 1.4.1734.kernel not found in cache! Building may take a while...
ERROR: clBuildProgram() -11
@DarkJester commented on GitHub (Dec 27, 2013):
i upgraded amd sdk to 2.8 and the output of list devices changed. compiling against amd sdk 2.9 causes a seg fault. using 2.8 all tests pass but only use cpu.
root@kali:~/JohnTheRipper-bleeding-jumbo/run# ./john --list=opencl-devices
Platform #0 name: AMD Accelerated Parallel Processing
Platform version: OpenCL 1.2 AMD-APP (1113.2)
Device #0 (0) name: Intel(R) Core(TM) i5 CPU M 520 @ 2.40GHz
Device vendor: GenuineIntel
Device type: CPU (LE)
Device version: OpenCL 1.2 AMD-APP (1113.2)
Driver version: 1113.2 (sse2)
Native vector widths: char 16, short 8, int 4, long 2
Preferred vector width: char 16, short 8, int 4, long 2
Global Memory: 3.0 GB
Global Memory Cache: 32.0 KB
Local Memory: 32.0 KB (Global)
Max memory alloc. size: 2.0 GB
Max clock (MHz): 1199
Profiling timer res.: 1 ns
Max Work Group Size: 1024
Parallel compute cores: 4
PCI device topology: 00:00.0
@magnumripper commented on GitHub (Dec 27, 2013):
Your install is broken, you need to get the GPU back in the list.
@DarkJester commented on GitHub (Dec 27, 2013):
as soon as i rollback to the older 2.7 sdk the gpu shows
@magnumripper commented on GitHub (Dec 27, 2013):
You might need the SDK for building but you only need the driver for running JtR. They probably removed support for your old card in newer SDK's. You need to ensure you use your legacy driver and not the one that comes with the SDK. Hashcat forums usually advice against installing the SDK at all because it often ends up wrong. If you do something like this:
In the case above (this was one of our test machines) you see the OpenCL library is from the SDK. If it says eg. fglrx in the path instead of AMDAPP it's the non-SDK driver. Details may vary. On an Ubuntu machine you can do something like this to enforce the latter:
@magnumripper commented on GitHub (Apr 22, 2014):
WPAPSK is confirmed working fine for RV710 when using --force-scalar. If you uncomment the
ForceScalar = Yin john.conf you don't need to add it on the command line all the time.