mirror of
https://github.com/openwall/john.git
synced 2026-12-03 18:45:21 +07:00
[GH-ISSUE #100] gpg-opencl does not work #10
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#10
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 @pettersolberg88 on GitHub (Oct 9, 2012).
Original GitHub issue: https://github.com/openwall/john/issues/100
Originally assigned to: @kholia on GitHub.
The gpg-opencl does not function properly. It finds a password, but does not output it right. Instead of outputting the password, it seems that it outputs the key filename/path of the key instead. I'm trying on a private key that has the password "per". Both running opencl on the cpu and gpu fails, but using the cpu cracker works.
To reproduce:
I compiled the
fcd70bdfrom unstable on 32bit ubuntu and used the key http://folk.ntnu.no/pettso/public/secret.key password:permake clean linux-x86-opencl
make gpg2john
./gpg2john ~/bugreport/keys/secret.key > ~/bugreport/parsed.out
Crack using gpg-opencl HD5970
./john -fo:gpg-opencl ~/bugreport/parsed.out
OpenCL platform 0: AMD Accelerated Parallel Processing, 3 device(s).
Using device 0: Cypress
Compilation log:
Warning: gpg kernel has register spilling. Lower performance is expected.
Loaded 1 password hash (OpenPGP / GnuPG Secret Key [OpenCL])
/home/petter/bu (/home/petter/bugreport/keys/secret.key)
guesses: 1 time: 0:00:00:00 DONE (Tue Oct 9 15:32:02 2012) c/s: 3716 trying: /home/petter/bu - Pbugreport0
Use the "--show" option to display all of the cracked passwords reliably
./john --show ~/bugreport/parsed.out
/home/petter/bugreport/keys/secret.key:/home/petter/bu
1 password hash cracked, 0 left
Crack using gpg-opencl CPU
rm john.pot
./john -fo:gpg-opencl -dev=2 ~/bugreport/parsed.out
OpenCL platform 0: AMD Accelerated Parallel Processing, 3 device(s).
Using device 2: Intel(R) Core(TM) i7 CPU 940 @ 2.93GHz
Loaded 1 password hash (OpenPGP / GnuPG Secret Key [OpenCL])
/home/petter/bu (/home/petter/bugreport/keys/secret.key)
guesses: 1 time: 0:00:00:52 DONE (Tue Oct 9 15:42:30 2012) c/s: 43.93 trying: /home/petter/bu - Pbugreport0
Use the "--show" option to display all of the cracked passwords reliably
./john --show ~/bugreport/parsed.out
/home/petter/bugreport/keys/secret.key:/home/petter/bu
1 password hash cracked, 0 left
Crack using gpg
rm john.pot
./john -fo:gpg ~/bugreport/parsed.out
Loaded 1 password hash (OpenPGP / GnuPG Secret Key [32/32])
pet (/home/petter/bugreport/keys/secret.key)
guesses: 1 time: 0:00:00:00 DONE (Tue Oct 9 15:46:59 2012) c/s: 1085 trying: pet
Use the "--show" option to display all of the cracked passwords reliably
./john --show ~/bugreport/parsed.out
/home/petter/bugreport/keys/secret.key:pet
1 password hash cracked, 0 left
@kholia commented on GitHub (Oct 10, 2012):
I have committed a fix in
cd2019afbe.Essentially, false positives were happening due to uninitialized / wrongly set cracked array.