mirror of
https://github.com/openwall/john.git
synced 2026-12-03 18:45:21 +07:00
[GH-ISSUE #2194] --format=ntlmv2-opencl possible failure #1465
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#1465
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 @nuartvision on GitHub (Aug 2, 2016).
Original GitHub issue: https://github.com/openwall/john/issues/2194
Hi, came across an issue on the Internet where user claims that he has problems with opencl format for ntlmv2 - some passwords fail to be found despite the fact that they are present in wordlist. Can you please have a look? Also asked the user to provide additional input here.
https://habrahabr.ru/post/306810/
password is 123qq
@nuartvision commented on GitHub (Aug 2, 2016):
Unfortunately currently I have only "contest" version available. The password is successfully found there.

@ValdikSS commented on GitHub (Aug 2, 2016):
Seems to be working fine with git version but not on 1.8.0-jumbo-1 release version (the one from 2014) which is in ArchLinux repository.
@nuartvision commented on GitHub (Aug 2, 2016):
yes, it fails on "1.8.0-jumbo-1"

@magnumripper commented on GitHub (Aug 2, 2016):
So this is fixed already.
@solardiz commented on GitHub (Aug 3, 2016):
I'm not sure what the problem was and what fixed it, but possibly it's
fffeee5928"NETNTLM buffer overflow. Fix #1405 Fix #1406".Anyway, I was about to suggest that we have JtR print a warning for all OpenCL/CUDA fast hash formats that do not support GPU mask mode, as well as for all OpenCL/CUDA fast hash formats when GPU mask mode is not used, suggesting that the CPU format or GPU mask (where supported) be used instead. It is generally pointless to run those hashes on GPU w/o on-GPU mask.
However, it turns out that our netntlmv2 CPU format does not use SIMD, so it actually is a lot slower than ntlmv2-opencl for me, even though both produce shamefully low speeds for this non-iterated hash and for their respective devices (that's no surprise: no SIMD for one format, and no on-GPU mask for the other). Specifically, the speeds I got on "super" for netntlmv2 are 8.35M OpenMP (32 threads), 395K_32 = 12.6M "--fork=32", 63M for ntlmv2-opencl on Titan X (nvidia-smi shows GPU util of 25%), 4_59M = 236M for "--fork=4" on Titan X (using the same GPU four times, from four separate CPU processes, for GPU util 74%), 55M_6 = 330M for "--fork=6" on Titan X (92%), 52M_8 = 416M for "--fork=8" on Titan X (finally 98%, 185W). All of this is for running against one hash with --mask='?a?a?a?a?a?a'. So the GPU format does make some sense for the time being, even if its reasonable use is hackish like this.
I still think the warnings are a good idea, but maybe we should make them selective or/and adjust the wording depending on our own speed measurements for each pair of CPU vs. GPU formats. magnum, feel free to open a separate issue for tracking this, if you feel we should proceed to add such warnings. We do have some warnings of this kind (grep the tree for "inefficient"), but I think they're not connected to GPU mask mode support (and making use of it in a given invocation) or lack thereof.
@solardiz commented on GitHub (Aug 3, 2016):
ntlmv2-opencl also makes sense on CPU, where it can take advantage of OpenCL "driver"'s (auto-)vectorization and thereby make use of SIMD where our CPU format does not. On super, getting 27.1M with this format using Intel's "driver", or more than twice faster than our CPU format did with "--fork=32". Looks like there's room for more speedup through vectorization of ntlmv2_nthash, though:
(only matters when running on no or few different "salts"?)