mirror of
https://github.com/openwall/john.git
synced 2026-12-03 18:45:21 +07:00
[GH-ISSUE #1564] Brainstorming: OpenCL dynamic, OpenCL external mode #1023
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#1023
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 @magnumripper on GitHub (Jul 18, 2015).
Original GitHub issue: https://github.com/openwall/john/issues/1564
Given we do a run-time compile of OpenCL kernels, "how hard can it be" to do things like
It's just a matter of really wanting to do it. Both ideas have tumbled around in my head for quite a while.
@jfoug commented on GitHub (Jul 18, 2015):
You could give this a try:
Take the existing dynamic_compiler_fmt.c and make a new one, dynamic_compiler_opencl_fmt.c. Within this format you could 'obtain' a valid working dynamic script, which is basically a step by step explanation of what needs to be done. Then generate your kernel based upon those instructions. I can easily provide a hook into the dyna-compiler to simply return the script. I had a function at one time (but removed it), where you could call the compiler (gives you a handle), and then pass that handle back to a function to get the script. I think I removed that code (just stub functions) here:
github.com/magnumripper/JohnTheRipper@329c4abde7But adding things like this should be very easy, or even just a mode of the compiler to build the script only, and not link into the dynamic engine.
@frank-dittrich commented on GitHub (Jul 18, 2015):
Only few external modes will produce enough candidates to fully utilize the GPU.
BTW: should we warn the user when an attack running on a GPU produces less than 50% of the candidates the GPU needs for optimal performance?
@magnumripper commented on GitHub (Jul 18, 2015):
This is what I meant. We actually know how to do it, we just lack the real incentive. We could easily use your existing dynamic functions more or less as-is, and in OpenCL they'd be functions or macros or what not and it wouldn't matter. It would rock.