Discussion:
[john-users] Question on prince mode
Luis Rocha
2018-05-02 20:03:50 UTC
Permalink
Hi.

Having a wordlist like:

$ cat /tmp/prince
tanbark

Shouldn't --prince mode generate the candidate "tanbarktanbarktanbark" when
using --prince-elem-cnt-max=3 or higher?

I'm asking because I tried and doesn't seem so:

$ ./john --session=1password --prince=/tmp/prince --prince-elem-cnt-max=4
--stdout
tanbark
tanbarktanbark
2p 0:00:00:00 100.00% (2018-05-02 22:01) 50.00p/s tanbarktanbark

Thanks,
Luis
Patrick Proniewski
2018-05-02 20:16:22 UTC
Permalink
hi,
Post by Luis Rocha
Shouldn't --prince mode generate the candidate "tanbarktanbarktanbark" when
using --prince-elem-cnt-max=3 or higher?
$ ./john --session=1password --prince=/tmp/prince --prince-elem-cnt-max=4
--stdout
tanbark
tanbarktanbark
2p 0:00:00:00 100.00% (2018-05-02 22:01) 50.00p/s tanbarktanbark
you hit another limit: max length of candidates. Try:

$ ./john --prince=/tmp/prince --prince-elem-cnt-max=4 --stdout --max-len=24
tanbark
tanbarktanbark
tanbarktanbarktanbark
3p 0:00:00:01 0.00% 2.823p/s tanbarktanbarktanbark


patpro
Luis Rocha
2018-05-02 20:42:13 UTC
Permalink
Post by Patrick Proniewski
$ ./john --prince=/tmp/prince --prince-elem-cnt-max=4 --stdout --max-len=24
tanbark
tanbarktanbark
tanbarktanbarktanbark
3p 0:00:00:01 0.00% 2.823p/s tanbarktanbarktanbark
Thank you, I forgot about that one.
btw,Is there any way to go over the prince max len of 32?
magnum
2018-05-03 07:03:12 UTC
Permalink
Post by Luis Rocha
Post by Patrick Proniewski
$ ./john --prince=/tmp/prince --prince-elem-cnt-max=4 --stdout --max-len=24
tanbark
tanbarktanbark
tanbarktanbarktanbark
3p 0:00:00:01 0.00% 2.823p/s tanbarktanbarktanbark
Thank you, I forgot about that one.
btw,Is there any way to go over the prince max len of 32?
From source:

#define OUT_LEN_MAX 32 /* Limited by (u32)(1 << pw_len - 1) */

We'd need to change a few 32-bit variables to 64-bit. Also, length 32
already makes for huge load times and "infinite" output unless you lower
other variables (like max elements) or use really small wordlists.

Are you going to need separators as well? Like putting a space between
each base word? I guess you can work around it by ending each word in
list with a space but then you'd need to strip the very last space with
an external mode. Or you could just hack pp.c where it puts words together.

magnum
Luis Rocha
2018-05-03 19:24:41 UTC
Permalink
thank you magnum, at the moment knowing this info is enough for me.
Loading...