[GH-ISSUE #494] "Loaded a total of 4 password hashes with 4 different salts" once per forked process #197

Closed
opened 2026-10-14 02:56:02 +07:00 by bsakaguchi · 5 comments
Owner

Originally created by @frank-dittrich on GitHub (Jan 27, 2014).
Original GitHub issue: https://github.com/openwall/john/issues/494

$ ./john --fork=5 bcrypt.hashes
Loaded 4 password hashes with 4 different salts (bcrypt [Blowfish 32/32 X2])
Node numbers 1-5 of 5 (fork)
Press 'q' or Ctrl-C to abort, almost any other key for status
Each node loaded the whole wordfile to memory
5 0g 0:00:04:41 7.50% 2/3 (ETA: 23:24:31) 0g/s 4.489p/s 14.14c/s 14.14C/s newton1..nick1
1 0g 0:00:04:41 0.45% 2/3 (ETA: 15:42:49) 0g/s 4.574p/s 14.43c/s 14.43C/s kingdom..kitkat
2 0g 0:00:04:41 11.17% 2/3 (ETA: 23:04:00) 0g/s 4.616p/s 14.65c/s 14.65C/s chinachina..chuckchuck
3 0g 0:00:04:41 3.98% 2/3 (ETA: 00:19:45) 0g/s 4.584p/s 14.48c/s 14.48C/s Meggie..Melanie
4 0g 0:00:04:41 5.76% 2/3 (ETA: 23:43:23) 0g/s 4.557p/s 14.41c/s 14.41C/s peoples..percies
5 0g 0:00:04:43 7.50% 2/3 (ETA: 23:24:58) 0g/s 4.485p/s 14.14c/s 14.14C/s oranges1..oregon1
2 0g 0:00:04:43 11.18% 2/3 (ETA: 23:04:16) 0g/s 4.613p/s 14.66c/s 14.66C/s colorscolors..coolcool
3 0g 0:00:04:43 3.98% 2/3 (ETA: 00:20:35) 0g/s 4.575p/s 14.47c/s 14.47C/s Michele..Midnight
4 0g 0:00:04:43 5.76% 2/3 (ETA: 23:43:58) 0g/s 4.556p/s 14.43c/s 14.43C/s polices..poppies
1 0g 0:00:04:43 0.46% 2/3 (ETA: 15:27:26) 0g/s 4.569p/s 14.44c/s 14.44C/s legend..liberty
Waiting for 4 children to terminate
Session aborted

$ ./john --restore
Loaded 4 password hashes with 4 different salts (bcrypt [Blowfish 32/32 X2])
Node numbers 1-5 of 5 (fork)
Each node loaded the whole wordfile to memory
Press 'q' or Ctrl-C to abort, almost any other key for status
5 0g 0:00:04:45 7.51% 2/3 (ETA: 23:25:34) 0g/s 4.477p/s 14.14c/s 14.14C/s pandora1..panther1
2 0g 0:00:04:45 11.18% 2/3 (ETA: 23:04:49) 0g/s 4.603p/s 14.66c/s 14.66C/s dammitdammit..dancerdancer
1 0g 0:00:04:45 0.46% 2/3 (ETA: 15:34:56) 0g/s 4.561p/s 14.45c/s 14.45C/s lindsey..lisa
3 0g 0:00:04:45 3.98% 2/3 (ETA: 00:21:40) 0g/s 4.568p/s 14.48c/s 14.48C/s Misha..Mishka
4 0g 0:00:04:45 5.76% 2/3 (ETA: 23:44:47) 0g/s 4.547p/s 14.43c/s 14.43C/s prestons..queens
2 0g 0:00:04:55 11.21% 2/3 (ETA: 23:06:11) 0g/s 4.576p/s 14.68c/s 14.68C/s enigmaenigma..erinerin
1 0g 0:00:04:55 0.48% 2/3 (ETA: 15:26:38) 0g/s 4.528p/s 14.44c/s 14.44C/s molly1..monique
Waiting for 4 children to terminate
3 0g 0:00:04:55 4.00% 2/3 (ETA: 00:25:15) 0g/s 4.535p/s 14.47c/s 14.47C/s Peter1..Petey
5 0g 0:00:04:55 7.53% 2/3 (ETA: 23:27:37) 0g/s 4.447p/s 14.16c/s 14.16C/s roadrunner1..robinhood1
4 0g 0:00:04:55 5.78% 2/3 (ETA: 23:47:23) 0g/s 4.508p/s 14.40c/s 14.40C/s seattles..serenas
Session aborted

$ grep Loaded john.log
1 0:00:00:00 Loaded a total of 4 password hashes with 4 different salts
1 0:00:00:00 Loaded a total of 4 password hashes with 4 different salts
1 0:00:00:00 Loaded a total of 4 password hashes with 4 different salts
1 0:00:00:00 Loaded a total of 4 password hashes with 4 different salts
1 0:00:00:00 Loaded a total of 4 password hashes with 4 different salts
1 0:00:04:44 Loaded a total of 4 password hashes with 4 different salts
1 0:00:04:44 Loaded a total of 4 password hashes with 4 different salts
1 0:00:04:44 Loaded a total of 4 password hashes with 4 different salts
1 0:00:04:44 Loaded a total of 4 password hashes with 4 different salts
1 0:00:04:44 Loaded a total of 4 password hashes with 4 different salts

The "Loaded ..." line is printed once per forked process, but always as if the first process printed that line.

Originally created by @frank-dittrich on GitHub (Jan 27, 2014). Original GitHub issue: https://github.com/openwall/john/issues/494 $ ./john --fork=5 bcrypt.hashes Loaded 4 password hashes with 4 different salts (bcrypt [Blowfish 32/32 X2]) Node numbers 1-5 of 5 (fork) Press 'q' or Ctrl-C to abort, almost any other key for status Each node loaded the whole wordfile to memory 5 0g 0:00:04:41 7.50% 2/3 (ETA: 23:24:31) 0g/s 4.489p/s 14.14c/s 14.14C/s newton1..nick1 1 0g 0:00:04:41 0.45% 2/3 (ETA: 15:42:49) 0g/s 4.574p/s 14.43c/s 14.43C/s kingdom..kitkat 2 0g 0:00:04:41 11.17% 2/3 (ETA: 23:04:00) 0g/s 4.616p/s 14.65c/s 14.65C/s chinachina..chuckchuck 3 0g 0:00:04:41 3.98% 2/3 (ETA: 00:19:45) 0g/s 4.584p/s 14.48c/s 14.48C/s Meggie..Melanie 4 0g 0:00:04:41 5.76% 2/3 (ETA: 23:43:23) 0g/s 4.557p/s 14.41c/s 14.41C/s peoples..percies 5 0g 0:00:04:43 7.50% 2/3 (ETA: 23:24:58) 0g/s 4.485p/s 14.14c/s 14.14C/s oranges1..oregon1 2 0g 0:00:04:43 11.18% 2/3 (ETA: 23:04:16) 0g/s 4.613p/s 14.66c/s 14.66C/s colorscolors..coolcool 3 0g 0:00:04:43 3.98% 2/3 (ETA: 00:20:35) 0g/s 4.575p/s 14.47c/s 14.47C/s Michele..Midnight 4 0g 0:00:04:43 5.76% 2/3 (ETA: 23:43:58) 0g/s 4.556p/s 14.43c/s 14.43C/s polices..poppies 1 0g 0:00:04:43 0.46% 2/3 (ETA: 15:27:26) 0g/s 4.569p/s 14.44c/s 14.44C/s legend..liberty Waiting for 4 children to terminate Session aborted $ ./john --restore Loaded 4 password hashes with 4 different salts (bcrypt [Blowfish 32/32 X2]) Node numbers 1-5 of 5 (fork) Each node loaded the whole wordfile to memory Press 'q' or Ctrl-C to abort, almost any other key for status 5 0g 0:00:04:45 7.51% 2/3 (ETA: 23:25:34) 0g/s 4.477p/s 14.14c/s 14.14C/s pandora1..panther1 2 0g 0:00:04:45 11.18% 2/3 (ETA: 23:04:49) 0g/s 4.603p/s 14.66c/s 14.66C/s dammitdammit..dancerdancer 1 0g 0:00:04:45 0.46% 2/3 (ETA: 15:34:56) 0g/s 4.561p/s 14.45c/s 14.45C/s lindsey..lisa 3 0g 0:00:04:45 3.98% 2/3 (ETA: 00:21:40) 0g/s 4.568p/s 14.48c/s 14.48C/s Misha..Mishka 4 0g 0:00:04:45 5.76% 2/3 (ETA: 23:44:47) 0g/s 4.547p/s 14.43c/s 14.43C/s prestons..queens 2 0g 0:00:04:55 11.21% 2/3 (ETA: 23:06:11) 0g/s 4.576p/s 14.68c/s 14.68C/s enigmaenigma..erinerin 1 0g 0:00:04:55 0.48% 2/3 (ETA: 15:26:38) 0g/s 4.528p/s 14.44c/s 14.44C/s molly1..monique Waiting for 4 children to terminate 3 0g 0:00:04:55 4.00% 2/3 (ETA: 00:25:15) 0g/s 4.535p/s 14.47c/s 14.47C/s Peter1..Petey 5 0g 0:00:04:55 7.53% 2/3 (ETA: 23:27:37) 0g/s 4.447p/s 14.16c/s 14.16C/s roadrunner1..robinhood1 4 0g 0:00:04:55 5.78% 2/3 (ETA: 23:47:23) 0g/s 4.508p/s 14.40c/s 14.40C/s seattles..serenas Session aborted $ grep Loaded john.log 1 0:00:00:00 Loaded a total of 4 password hashes with 4 different salts 1 0:00:00:00 Loaded a total of 4 password hashes with 4 different salts 1 0:00:00:00 Loaded a total of 4 password hashes with 4 different salts 1 0:00:00:00 Loaded a total of 4 password hashes with 4 different salts 1 0:00:00:00 Loaded a total of 4 password hashes with 4 different salts 1 0:00:04:44 Loaded a total of 4 password hashes with 4 different salts 1 0:00:04:44 Loaded a total of 4 password hashes with 4 different salts 1 0:00:04:44 Loaded a total of 4 password hashes with 4 different salts 1 0:00:04:44 Loaded a total of 4 password hashes with 4 different salts 1 0:00:04:44 Loaded a total of 4 password hashes with 4 different salts The "Loaded ..." line is printed once per forked process, but always as if the first process printed that line.
bsakaguchi 2026-10-14 02:56:02 +07:00
Author
Owner

@magnumripper commented on GitHub (Jan 27, 2014):

I suspect that's a core (as in non-jumbo) bug, can you verify that? Or I'll do it later.

<!-- gh-comment-id:33429816 --> @magnumripper commented on GitHub (Jan 27, 2014): I suspect that's a core (as in non-jumbo) bug, can you verify that? Or I'll do it later.
Author
Owner

@magnumripper commented on GitHub (Feb 6, 2014):

Yup, this is a core bug.

<!-- gh-comment-id:34387165 --> @magnumripper commented on GitHub (Feb 6, 2014): Yup, this is a core bug.
Author
Owner

@magnumripper commented on GitHub (Feb 25, 2014):

Although the bug is merely that the forked process should not output this line at all - the mother process loads the hashes before forking.

<!-- gh-comment-id:36044222 --> @magnumripper commented on GitHub (Feb 25, 2014): Although the bug is merely that the forked process should not output this line at all - the mother process loads the hashes before forking.
Author
Owner

@magnumripper commented on GitHub (Apr 8, 2014):

Fixed in 35ea94b7d for Jumbo, bug still exist in core

<!-- gh-comment-id:39801853 --> @magnumripper commented on GitHub (Apr 8, 2014): Fixed in 35ea94b7d for Jumbo, bug still exist in core
Author
Owner

@magnumripper commented on GitHub (Apr 9, 2014):

The issue was reported to john-dev so I'm closing - we do not keep track of core-only bugs here.

<!-- gh-comment-id:40026100 --> @magnumripper commented on GitHub (Apr 9, 2014): The issue was reported to john-dev so I'm closing - we do not keep track of core-only bugs here.
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#197
No description provided.