mirror of
https://github.com/openwall/john.git
synced 2026-12-03 18:45:21 +07:00
[GH-ISSUE #2481] 1.8.0.9-jumbo-1-bleeding vs. 1.8.0-jumbo-1-5577-g80eddc3 vs. 1.8.0.6-jumbo-1-2970-g80eddc3 #1641
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#1641
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 (Mar 24, 2017).
Original GitHub issue: https://github.com/openwall/john/issues/2481
When I create a new git clone, the version is
When I download https://github.com/magnumripper/JohnTheRipper/archive/bleeding-jumbo.tar.gz and build that binary, I get
So, it looks as if the version from the tar.gz file were newer (1.8.0.9-jumbo-1) than the version built from within the git repo (1.8.0-jumbo-1).
This is confusing and unfortunate.
With latest git (my current local repo), I get
Some of the tags I have in my local repo have been deleted from the github repo:
I do remember we had a discussion about tags some time ago.
https://github.com/magnumripper/JohnTheRipper/issues/1788 describes that @magnumripper deleted those tags, and that
git tag -dcan be used in the local repositories to get rid of these tags.https://github.com/magnumripper/JohnTheRipper/issues/1802 mentions that these tags were deleted because github will list any tag as a "release". Where can I see that list of "releases"?
When these tags were deleted, it would have been better to adjust the JOHN_VERSION definition in params.h as well, so that it doesn't report "1.8.0.9-jumbo-1-bleeding" any longer.
Unfortunately, the latest builds of windows binaries by Robert B. Harris, announced on john-users, also report version 1.8.0.9-jumbo-1-bleeding.
I guess the current situation will only improve after the next "official" jumbo release.
But if the next jumbo release is based on 1.8.0.9, it will be difficult to distinguish the 1.8.0.9-jumbo-1-bleeding builds created before that jumbo release from those created after the release.
BTW: the latest release tag in the master branch is 1.8.0:
@kholia commented on GitHub (Mar 24, 2017):
https://github.com/magnumripper/JohnTheRipper/releases (list of "releases").
@frank-dittrich commented on GitHub (Mar 24, 2017):
Assuming that github is using
git archiveto create the .tar.gz or .zip archives, we could also try something similar to what hashcat seems to be doing:For a list of format placeholders, see
man git log, sectionPRETTY FORMATSWe could use
"$Format:%h$"as part of the version string for builds based on downloaded bleeding-jumbo archives.That should avoid possible confusion.
@frank-dittrich commented on GitHub (Mar 24, 2017):
See
github.com/frank-dittrich/JohnTheRipper@82bd82a88aas an example.Building john based on a bleeding-jumbo archive download would result in this output:
May be this "version string" is too long for the usage output:
But I think having some kind of "date of most recent commit" information in there is useful.
The builds from within a git repo would still use
@magnumripper commented on GitHub (Mar 31, 2017):
I don't understand that string at all. What is it, what does it affect, what is the result? Is it a gmake thing?
@magnumripper commented on GitHub (Mar 31, 2017):
The ones after will be called 1.8.0.x-jumbo-2-bleeding so should be very easy to distinguish. Or do I miss something?
@frank-dittrich commented on GitHub (Mar 31, 2017):
@magnumripper That
$Format:...$string only has a "meaning" if there's also a.gitattributesline with theexport-substkeyword. Then these format strings are substituted when creating an archive file (tar/zip).Check
man 1 git-archive, especially the explanation ofexport-substin theATTRIBUTESsection:If the attribute export-subst is set for a file then Git will expand several placeholders when adding this file to an archive. See gitattributes(5) for details.See also my commit
github.com/frank-dittrich/JohnTheRipper@82bd82a88a.Now, if you download https://github.com/frank-dittrich/JohnTheRipper/archive/bleeding-jumbo.tar.gz or https://github.com/frank-dittrich/JohnTheRipper/archive/bleeding-jumbo.zip, you'll get an archive file where params.h doesn't contain the string
$Format:-g%h %cI$, so that with the appropriate substitutions done automatically bygit archive,JOHN_VERSIONwill be defined as"1.8.0-jumbo-1-bleeding-g82bd82a 2017-03-24T15:27:40+01:00". And if new commits are added on top ofgithub.com/frank-dittrich/JohnTheRipper@82bd82a88a, the version string with have the information about the latest commit and its commit time stamp.@frank-dittrich commented on GitHub (Mar 31, 2017):
Depends on the 'x'. As long as x >= 9, you are probably right - until @solardiz creates new core releases. Then, JOHN_VERSION might again be misleading.
@magnumripper commented on GitHub (Apr 2, 2017):
So if using a tree not downloaded as an archive, params.h would contain the strange string, but the way hashcat does it should work around that. I think I get it. We should do this to Makefile.in and leave params.h alone. Also, I think the timestamp is overkill (and too long), we should just use the commit hash.
@frank-dittrich commented on GitHub (Apr 2, 2017):
git archive would also work in your local git repo, not just when downloading from github.
In the Makefile, you could just use the commit date instead of the complete timestamp.
While we would be able to find out how old a build is based on the commit hash, a regular user wouldn't.
@frank-dittrich commented on GitHub (Apr 2, 2017):
May be we could also use
export-ignorein.gitattributesto exclude some files or directories from the archives, e.g.And exclude
.gitattributesas well...@magnumripper commented on GitHub (Apr 2, 2017):
That's a good idea
@frank-dittrich commented on GitHub (Dec 16, 2017):
The issues mentioned here have been fixed with https://github.com/magnumripper/JohnTheRipper/pull/3017, closing