[GH-ISSUE #2805] gpg2john unable to parse a file that previously worked #1798

Closed
opened 2026-10-15 04:24:41 +07:00 by bsakaguchi · 1 comment
Owner

Originally created by @ghost on GitHub (Oct 1, 2017).
Original GitHub issue: https://github.com/openwall/john/issues/2805

Originally assigned to: @kholia on GitHub.

A few commits in the past:

wget http://openwall.info/wiki/_media/john/test.gpg.tar.gz
tar -xozf test.gpg.tar.gz
../run/gpg2john *.asc 

[...]
Warning: detected hash type "gpg", but the string is also recognized as "gpg-opencl"
Use the "--format=gpg-opencl" option to force loading these as that type instead
Using default input encoding: UTF-8
Loaded 4 password hashes with 4 different salts (gpg, OpenPGP / GnuPG Secret Key [32/64])
Cost 1 (s2k-count) is 65536 for all loaded hashes
Cost 2 (hash algorithm [1:MD5 2:SHA1 3:RIPEMD160 8:SHA256 9:SHA384 10:SHA512 11:SHA224]) is 2 for all loaded hashes
Cost 3 (cipher algorithm [1:IDEA 2:3DES 3:CAST5 4:Blowfish 7:AES128 8:AES192 9:AES256 10:Twofish 11:Camellia128 12:Camellia192 13:Camellia256]) is 3 for all loaded hashes
Will run 32 OpenMP threads
Press 'q' or Ctrl-C to abort, almost any other key for status
qwerty2          (Brandon User)
alamakota        (Original)
normal           (Łąśóęśżźć Normal)
qwerty           (Random User)
4g 0:00:00:00 DONE 2/3 (2017-10-01 19:51) 4.255g/s 65751p/s 65757c/s 65757C/s 123456..222222

Now, it is failing at:

File test.utf8.asc
unexpected end of file.
Originally created by @ghost on GitHub (Oct 1, 2017). Original GitHub issue: https://github.com/openwall/john/issues/2805 Originally assigned to: @kholia on GitHub. A few commits in the past: ``` wget http://openwall.info/wiki/_media/john/test.gpg.tar.gz tar -xozf test.gpg.tar.gz ../run/gpg2john *.asc [...] Warning: detected hash type "gpg", but the string is also recognized as "gpg-opencl" Use the "--format=gpg-opencl" option to force loading these as that type instead Using default input encoding: UTF-8 Loaded 4 password hashes with 4 different salts (gpg, OpenPGP / GnuPG Secret Key [32/64]) Cost 1 (s2k-count) is 65536 for all loaded hashes Cost 2 (hash algorithm [1:MD5 2:SHA1 3:RIPEMD160 8:SHA256 9:SHA384 10:SHA512 11:SHA224]) is 2 for all loaded hashes Cost 3 (cipher algorithm [1:IDEA 2:3DES 3:CAST5 4:Blowfish 7:AES128 8:AES192 9:AES256 10:Twofish 11:Camellia128 12:Camellia192 13:Camellia256]) is 3 for all loaded hashes Will run 32 OpenMP threads Press 'q' or Ctrl-C to abort, almost any other key for status qwerty2 (Brandon User) alamakota (Original) normal (Łąśóęśżźć Normal) qwerty (Random User) 4g 0:00:00:00 DONE 2/3 (2017-10-01 19:51) 4.255g/s 65751p/s 65757c/s 65757C/s 123456..222222 ``` Now, it is failing at: ``` File test.utf8.asc unexpected end of file. ```
bsakaguchi 2026-10-15 04:24:41 +07:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@kholia commented on GitHub (Oct 2, 2017):

../run/gpg2john *.asc

I believe that this has never worked properly in the past. This is perhaps not a new bug.

Update: Hmm. This used to work before commit 7a3287d749.

../run/gpg2john *.asc

There is only a single file test.utf8.asc file being processed. The *.asc part in the command is confusing.

<!-- gh-comment-id:333433212 --> @kholia commented on GitHub (Oct 2, 2017): > ../run/gpg2john *.asc I believe that this has never worked properly in the past. This is perhaps not a new bug. Update: Hmm. This used to work before commit 7a3287d749dce1e30d7295f0d5b0ee5464b2bb8d. > ../run/gpg2john *.asc There is only a single file `test.utf8.asc` file being processed. The `*.asc` part in the command is confusing.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
openwall/john#1798
No description provided.