Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Date: Thu, 20 Aug 2015 16:24:07 +0800
From: Kai Zhao <loverszhao@...il.com>
To: john-dev@...ts.openwall.com
Subject: FormSpring valid()

Hi,

There maybe a problem with formspring's valid(). The original test vectors are:

static struct fmt_tests formspring_tests[] = {
        {"2a4fa0bf8c6a01dd625d3141746451ba51e07f99dc9143f1e25a37f65cb02eb4$RA",
"test1"},
        // repeat in the same format that is used in john.pot
        {"$dynamic_61$2a4fa0bf8c6a01dd625d3141746451ba51e07f99dc9143f1e25a37f65cb02eb4$RA",
"test1"},
        //{"b06b5c132bb1adf421ce6ac406bfabba380546deaab92bd20c3d56baaa70b6cf$
 ", "test1"},
        //{"cdefb423bad94e3abfe5fc4044bb315a2b875220eb8c8b840849df7ef45bdcef$
 ", "test3"},
        {NULL}
};

1. When I add the a new test vector to formspring:

{"a987090ac31f466c4637e22858aa3db0001e7c0ad8e6724e26e76b8e531df46c$76931fac",
"abc"}

And ./john --test=0 --format=formspring

Testing: FormSpring [sha256($s.$p) 256/256 AVX2 8x]...
FAILED (valid (a987090ac31f466c4637e22858aa3db0001e7c0ad8e6724e26e76b8e531df46c$76931fac))

2. But when I add "$dynamic_61$" as the prefix of the new hash.

{"$dynamic_61$a987090ac31f466c4637e22858aa3db0001e7c0ad8e6724e26e76b8e531df46c$76931fac",
"abc"}

And ./john --test=0 --format=formspring

Testing: FormSpring [sha256($s.$p) 256/256 AVX2 8x]... PASS


Thanks,

Kai

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.