mirror of
https://github.com/openwall/john.git
synced 2026-12-03 18:45:21 +07:00
[GH-ISSUE #1009] dynamic_17: TS error with ./jtrts.pl -q -type full -random -seed=987180 -passthru="--fork=2" #608
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#608
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 (Jan 7, 2015).
Original GitHub issue: https://github.com/openwall/john/issues/1009
This is with latest commit, commit
e99a574ce6@jfoug commented on GitHub (Jan 7, 2015):
The format is failing. All hashes that fail end with 2 periods.
This may also be due to the change to the binary() function in dynamic.
@jfoug commented on GitHub (Jan 7, 2015):
It was the change to dynamic function binary_b64() I switched it from a hard coded load, to a call into base64_convert. Obviously there is a bug in that code, when trailing ... on the end of the input are seen.
@frank-dittrich commented on GitHub (Jan 7, 2015):
Should one of those hashes be added to the self tests, so that you easier notice when you break it?
Or is it more likely that next time you break it in a different way? ;)
@jfoug commented on GitHub (Jan 7, 2015):
I certainly can add one. I have 'found' a work around, but I need to make sure I get base64_convert code fixed. I 'auto' strip off '.' chars. Part of the problem is getting this crap in canonical format. Sometimes these hashes are padded to even boundarys (i.e. '=' or '.' are padded to odd sized hashes). Other times, these are truncated.
In this case, the '.' are actually needed. If I memset the buffer before running the call to base64_convert, I get proper results. BUT it should get correct results, even without the memset. That is an ugly constraint to place on the origination code.
@jfoug commented on GitHub (Jan 7, 2015):
One big difference between mime and crypt base64, is mime uses a character that is totally OUT of play, the = character for padding. However, for crypt, padding is done with a valid character (the 6-bit 0 character which is the '.' ) It makes knowing the 'proper' thing to do, a little harder.
@jfoug commented on GitHub (Jan 7, 2015):
This 'has' to be made to work, and does not:
@jfoug commented on GitHub (Jan 7, 2015):
Ok, i have a change, and now I get this:
BUT, I want to run the full base64 test suite I have. I know I have made changes before, and things had serious problems on the TS. Also, I need to get some of these 'goodies' into my TS.
@jfoug commented on GitHub (Jan 7, 2015):
I have added the base64 TS script to the jtrts project.
Also, I added 'null' data checking to the script. With the changes I have made, the TS still is happy, AND the NULL test is working properly. I will be checking in things shortly.
@jfoug commented on GitHub (Jan 7, 2015):
Please do your magic against
3b96c50It passes jtr self test, it passes the base64_conv self test and dyna_17/phpass is still happy (as is the new dynamic_1032, which the switch into base64_conv was originally done for).
@jfoug commented on GitHub (Jan 7, 2015):
@frank-dittrich if you think this is fixed, then close this task. I am out for a while.