Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date: Thu, 9 May 2013 11:16:21 -0400
From: Rich Rumble <richrumble@...il.com>
To: john-dev@...ts.openwall.com
Subject: Re: --fork under Cygwin

What I've found so far, is that the Cygwin1.dll(1.7.9)  that is currently
distributed with John does "behave" a bit better than 1.7.17, 1.7.18 -
meaning it doesn't exhibit the "hang" others do, processes spawn and do not
work = "hang".
Solar provided me with 2 tar balls to compile, one with fork the other
without (both severely limited formats to choose from). What I have
encountered still is very unreliable behavior from fork under cygwin. Any
mingw coming soon perhaps? :) The pot file will be written to by the first
thread(as far as i can tell) initally... but not again until ctrl+c is
pressed, when fork is >=2.

The TLDR; is: Fork under cygwin isn't writing to the pot as expected,
sporadic behavior with the spawned processes happens on all versions of
cygwin1.dll I have. Might need a build that can offer more verbosity or
track/mark what thread did/cracked what, perhaps to stdout.

Start john fork=3 (or anything greater than 2)
crack some passes, nothing in the pot even after 5 minutes and plenty of
cracks. Press ctrl+c and a few cracks appear in the pot. The john.log file
only has the initial start up logged (0:00:00:00). Killing an orphaned
process will typically result in the pot being written to, but when all
processes are killed the pot will not have all the same cracks from the
screen. Ctrl+C will not result in any process termination, I've waited
hours, a second ctrl+c will kill the parent/initial process typically. The
2nd ctrl+c does not seem to result in any additional info in john.log or
the pot file. All the spawned processes keep cracking, but do not write to
the pot or log until they are killed.

1 0:00:00:00 Starting a new session
1 0:00:00:00 Loaded a total of 7563 password hashes with 7563 different
salts
1 0:00:00:00 - Node numbers 1-3 of 3 (fork)
2 0:00:00:00 - Hash type: md5crypt (lengths up to 15)
2 0:00:00:00 - Algorithm: MD5 32/32
2 0:00:00:00 - Configured to use otherwise idle processor cycles only
2 0:00:00:00 Proceeding with "incremental" mode: All
2 0:00:00:00 - Lengths 0 to 8, up to 95 different characters
1 0:00:00:00 Starting a new session
1 0:00:00:00 Loaded a total of 7563 password hashes with 7563 different
salts
1 0:00:00:00 - Node numbers 1-3 of 3 (fork)
1 0:00:00:00 - Hash type: md5crypt (lengths up to 15)
1 0:00:00:00 - Algorithm: MD5 32/32
1 0:00:00:00 - Configured to use otherwise idle processor cycles only
1 0:00:00:00 Proceeding with "incremental" mode: All
1 0:00:00:00 - Lengths 0 to 8, up to 95 different characters
1 0:00:00:00 Starting a new session
1 0:00:00:00 Loaded a total of 7563 password hashes with 7563 different
salts
1 0:00:00:00 - Node numbers 1-3 of 3 (fork)
3 0:00:00:00 - Hash type: md5crypt (lengths up to 15)
3 0:00:00:00 - Algorithm: MD5 32/32
3 0:00:00:00 - Configured to use otherwise idle processor cycles only
3 0:00:00:00 Proceeding with "incremental" mode: All
3 0:00:00:00 - Lengths 0 to 8, up to 95 different characters

-----Anything after the line above appears only after ctrl+c the 1st
time-----

1 0:00:00:00 - Switching to length 1
1 0:00:00:00 - Expanding tables for length 1 to character count 1
1 0:00:00:01 - Trying length 1, fixed @1, character count 1
1 0:00:00:02 - Expanding tables for length 1 to character count 2
1 0:00:00:02 - Trying length 1, fixed @1, character count 2
1 0:00:00:03 - Expanding tables for length 1 to character count 5
1 0:00:00:03 - Trying length 1, fixed @1, character count 5
1 0:00:00:04 - Expanding tables for length 1 to character count 8
1 0:00:00:04 - Trying length 1, fixed @1, character count 8
1 0:00:00:05 - Expanding tables for length 1 to character count 11
1 0:00:00:05 - Trying length 1, fixed @1, character count 11
1 0:00:00:06 - Expanding tables for length 1 to character count 14
1 0:00:00:06 - Trying length 1, fixed @1, character count 14
1 0:00:00:07 - Expanding tables for length 1 to character count 17
1 0:00:00:07 - Trying length 1, fixed @1, character count 17
1 0:00:00:08 - Expanding tables for length 1 to character count 20
1 0:00:00:08 - Trying length 1, fixed @1, character count 20
1 0:00:00:09 - Expanding tables for length 1 to character count 23
1 0:00:00:09 - Trying length 1, fixed @1, character count 23
1 0:00:00:09 + Cracked user-2011
1 0:00:00:10 - Expanding tables for length 1 to character count 26
1 0:00:00:10 - Trying length 1, fixed @1, character count 26
1 0:00:00:11 - Expanding tables for length 1 to character count 29
1 0:00:00:11 - Trying length 1, fixed @1, character count 29
1 0:00:00:12 - Expanding tables for length 1 to character count 32
1 0:00:00:12 - Trying length 1, fixed @1, character count 32
1 0:00:00:13 - Expanding tables for length 1 to character count 35
1 0:00:00:13 - Trying length 1, fixed @1, character count 35
1 0:00:00:14 - Expanding tables for length 1 to character count 38
1 0:00:00:14 - Trying length 1, fixed @1, character count 38
1 0:00:00:15 - Expanding tables for length 1 to character count 41
1 0:00:00:15 - Trying length 1, fixed @1, character count 41
1 0:00:00:16 - Expanding tables for length 1 to character count 44
1 0:00:00:16 - Trying length 1, fixed @1, character count 44
1 0:00:00:17 - Switching to length 2
1 0:00:00:17 - Expanding tables for length 2 to character count 3
1 0:00:00:17 - Trying length 2, fixed @1, character count 3
1 0:00:00:19 - Switching to length 3
1 0:00:00:19 - Expanding tables for length 3 to character count 1
1 0:00:00:19 - Trying length 3, fixed @1, character count 1
1 0:00:00:20 - Expanding tables for length 3 to character count 2
1 0:00:00:20 - Trying length 3, fixed @1, character count 2
1 0:00:00:21 - Switching to length 2
1 0:00:00:21 - Expanding tables for length 2 to character count 5
1 0:00:00:21 - Trying length 2, fixed @1, character count 5
1 0:00:00:25 - Expanding tables for length 2 to character count 8
1 0:00:00:25 - Trying length 2, fixed @1, character count 8
1 0:00:00:29 - Trying length 2, fixed @2, character count 7
1 0:00:00:36 + Cracked user-6320
1 0:00:00:37 - Switching to length 5
1 0:00:00:37 - Expanding tables for length 5 to character count 2
1 0:00:00:37 - Trying length 5, fixed @3, character count 2
1 0:00:00:38 - Switching to length 3
1 0:00:00:38 - Expanding tables for length 3 to character count 3
1 0:00:00:38 - Trying length 3, fixed @2, character count 3
1 0:00:00:44 - Switching to length 2
1 0:00:00:44 - Expanding tables for length 2 to character count 11
1 0:00:00:44 - Trying length 2, fixed @1, character count 11
1 0:00:00:52 - Switching to length 3
1 0:00:00:52 - Expanding tables for length 3 to character count 4
1 0:00:00:52 - Trying length 3, fixed @1, character count 4
1 0:00:01:00 + Cracked user-2876
1 0:00:01:01 - Switching to length 2
1 0:00:01:01 - Expanding tables for length 2 to character count 12
1 0:00:01:01 - Trying length 2, fixed @2, character count 10
1 0:00:01:07 + Cracked user-2218
1 0:00:01:13 - Switching to length 3
1 0:00:01:13 - Expanding tables for length 3 to character count 5
1 0:00:01:13 - Trying length 3, fixed @3, character count 5
1 0:00:01:28 - Expanding tables for length 3 to character count 6
1 0:00:01:28 - Trying length 3, fixed @1, character count 6
1 0:00:01:36 + Cracked user-5951
1 0:00:01:46 - Switching to length 2
1 0:00:01:46 - Expanding tables for length 2 to character count 13
1 0:00:01:46 - Trying length 2, fixed @2, character count 12
1 0:00:01:59 - Expanding tables for length 2 to character count 14
1 0:00:01:59 - Trying length 2, fixed @1, character count 14
1 0:00:02:13 - Switching to length 3
1 0:00:02:13 - Expanding tables for length 3 to character count 8
1 0:00:02:13 - Trying length 3, fixed @1, character count 8
1 0:00:02:26 + Cracked user-6212
1 0:00:02:34 - Expanding tables for length 3 to character count 10
1 0:00:02:34 - Trying length 3, fixed @3, character count 10
1 0:00:02:41 + Cracked user-4578
1 0:00:02:58 - Switching to length 2
1 0:00:02:58 - Expanding tables for length 2 to character count 17
1 0:00:02:58 - Trying length 2, fixed @2, character count 17
1 0:00:03:00 + Cracked user-4651
1 0:00:03:09 + Cracked user-3688
1 0:00:03:13 - Switching to length 3
1 0:00:03:13 - Expanding tables for length 3 to character count 10
1 0:00:03:13 - Trying length 3, fixed @1, character count 9
1 0:00:03:53 - Switching to length 2
1 0:00:03:53 - Expanding tables for length 2 to character count 20
1 0:00:03:53 - Trying length 2, fixed @2, character count 20
1 0:00:04:08 - Switching to length 6
1 0:00:04:08 - Expanding tables for length 6 to character count 2
1 0:00:04:08 - Trying length 6, fixed @1, character count 2
1 0:00:04:09 - Switching to length 3
1 0:00:04:09 - Expanding tables for length 3 to character count 11
1 0:00:04:09 - Trying length 3, fixed @1, character count 11
1 0:00:04:49 - Switching to length 5
1 0:00:04:49 - Expanding tables for length 5 to character count 3
1 0:00:04:49 - Trying length 5, fixed @4, character count 3
1 0:00:05:13 - Switching to length 3
1 0:00:05:13 - Expanding tables for length 3 to character count 13
1 0:00:05:13 - Trying length 3, fixed @3, character count 13
1 0:00:05:13 + Cracked user-2176
1 0:00:05:39 + Cracked user-4420
1 0:00:05:57 - Switching to length 5
1 0:00:05:57 - Expanding tables for length 5 to character count 3
1 0:00:05:57 - Trying length 5, fixed @3, character count 3
1 0:00:06:51 - Switching to length 6
1 0:00:06:51 - Expanding tables for length 6 to character count 2
1 0:00:06:51 - Trying length 6, fixed @3, character count 2
1 0:00:06:55 - Switching to length 4
1 0:00:06:55 - Expanding tables for length 4 to character count 5
1 0:00:06:55 - Trying length 4, fixed @3, character count 5
1 0:00:06:57 - Switching to length 5
1 0:00:06:57 - Expanding tables for length 5 to character count 3
1 0:00:06:57 - Trying length 5, fixed @1, character count 3
===========
start session ->cracks some -no entries in the pot, and log file has very
little info, press ctrl+c
parent process does not stop, but cpu load is 0 on parent, all other
threads keep cracking-> ctrl+c (again)
parent has stopped, forks are still running and using full CPU
kill one forked process, pot get's a few more entries, log sometimes get
more messages
kill another forked process, pot get's a few more entries, log sometimes
get more messages

The pot doesn't match the screen, but the log matches the pot as far as
what it thinks it's cracked.
Let me know what more you want me to try. The DLL so far doesn't make much
difference so far, and I've only tried incremental mode, iirc single won't
work with fork.
-rich

Content of type "text/html" skipped

Powered by blists - more mailing lists

Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.