mirror of
https://github.com/openwall/john.git
synced 2026-12-03 18:45:21 +07:00
[GH-ISSUE #1474] Add preprocessor warnings for formats that are skipped #949
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#949
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 @frank-dittrich on GitHub (Jun 28, 2015).
Original GitHub issue: https://github.com/openwall/john/issues/1474
Originally assigned to: @frank-dittrich on GitHub.
Otherwise, users and developers will not notice that (and why) they do not get all the formats.
./configure of course mentions when you don't get OpenCL and CUDA formats in the "feature summary" output.
It also mentions pkzip format and generic crypt(3) format.
But it doesn't mention that you don't get OpenVMS format on big endian systems, or if some formats are suppressed due to missing CPU features (SSE4.1, etc).
In these cases, we should add a preprocessor warning, either for DEBUG builds or for all builds.
See comments on commit
github.com/magnumripper/JohnTheRipper@b1da77d8a2.At least these formats can be skipped depending on endianness, CPU features, etc:
So we need to add preprocessor warnings in case they are skipped.
@lei-april commented on GitHub (Jul 1, 2015):
The build info of a POWER build compared with a typical x86 build (no CUDA or OpenCL):
And the configure summary of the POWER build:
There's another minor issue. The POWER platform in use is actually configured as little endian, but is reported as big endian here.
@frank-dittrich commented on GitHub (Jul 1, 2015):
So, which formats are missing?
I am sure that OpenVMS format is most likely missing, I recently saw the
if ARCH_LITTLE_ENDIANin vms_fmt_plug.c.But there must be some more that are missing in your POWER build.
@lei-april commented on GitHub (Jul 1, 2015):
The missing formats are:
@frank-dittrich commented on GitHub (Jul 1, 2015):
#if defined(SIMD_PARA_SHA1)causes Raw-SHA1-Linkedin to be excluded.#if SIMD_COEF_32causes Raw-SHA256-ng and Raw-SHA512-ng to be excluded.#if defined(SIMD_COEF_32) && (SIMD_COEF_32 < 16 || ARCH_BITS >= 64) && !_MSC_VERcauses Raw-SHA1-ng to be excluded.For the
*-ngformats there are similar formats without the-ngsuffix. These should crack the same hashes, just a little slower.Nevertheless, I think we should add a
#warning ...here.#if __SSE4_1__excludes Stribog-256 and Stribog-512.And OpenVMS apparently only works for LE archs.
@lei-april commented on GitHub (Jul 1, 2015):
In configure:
Both a LE build and a BE build use ppc32.h. But in ppc32.h:
This is problematic.
@frank-dittrich commented on GitHub (Jul 1, 2015):
@zzlei what is the output of
--list=build-infofor your build?@lei-april commented on GitHub (Jul 1, 2015):
@jfoug commented on GitHub (Jul 1, 2015):
The problem is this is an LE system, but configure picks BE
@magnumripper commented on GitHub (Jul 1, 2015):
I shouldn't be, the file starts with
and line 26 is within the #else clause
@magnumripper commented on GitHub (Jul 1, 2015):
I think we need this
@frank-dittrich commented on GitHub (Jul 1, 2015):
Do we need to sanity-check the endianness of the build against any of these?
@lei-april commented on GitHub (Jul 1, 2015):
I think that's the right solution. The actually CPU name is
powerpc64le, and it was wrongly matched withpowerpc*, thus the wrong endianness report.@frank-dittrich commented on GitHub (Aug 11, 2015):
See commit
b3293b0a4fNow that Jim disabled some tools like luks2john
we might also need to add a warning if such tools disappear...
@frank-dittrich commented on GitHub (Jan 18, 2016):
Stribog formats now have a warning:
@magnumripper commented on GitHub (Apr 10, 2019):
I now removed the following from OP
Reason being that all -ng formats are merely other versions of more portable ones, and the linkedin format isn't very interesting anymore (all complete hashes were later leaked IIRC).
Only one left is thus VMS. It gets disabled on BE platforms.