![]() |
The Brain not working as expected (or is it me?) - Printable Version +- hashcat Forum (https://hashcat.net/forum) +-- Forum: Support (https://hashcat.net/forum/forum-3.html) +--- Forum: hashcat (https://hashcat.net/forum/forum-45.html) +--- Thread: The Brain not working as expected (or is it me?) (/thread-9207.html) |
The Brain not working as expected (or is it me?) - Snoopy - 05-08-2020 First of all, i read the full announcement regarding the brain and THOUGHT i understand it, but seems not... https://hashcat.net/forum/thread-7903.html so i started some tests using brain server and client with client-features=3. i used a very basic setup (md5 to crack and a simple dictionary) first run (one matching pw in dict-1.txt) Code: .\hashcat64.exe -z --brain-client-features=3 -a 0 -m 0 .\hash-1.txt .\dict-1.txt worked as expected second run (added one new matching pw to dict -> dict2.txt Code: .\hashcat64.exe -z --brain-client-features=3 -a 0 -m 0 .\hash-1.txt .\dict-2.txt worked as expected, rejected 10 old already testet pw , just using the new one, recovered one new hash, perfekt now i simulated some other work, blabla, my dict is evolving to dict-3 and now im getting a new hashlist from somewhere else (hash-2.txt) with some already known pw (potfile to the rescue) but also some new hashes with "old" pw within dict-3.txt Code: .\hashcat64.exe -z --brain-client-features=3 -a 0 -m 0 .\hash-2.txt .\dict-3.txt not working as i expected, brain rejected 11 pw from dict-3 but these pw where never testet against this new file hash-2.txt i thought the brain stores a hash of the input file, to track attacks versus that file but seems not? so how can i achieve, that the brain tracks attacks but also recognize new files the correct way? RE: The Brain not working as expected (or is it me?) - philsmd - 05-08-2020 Can you show also the server logs ? do the IDs change ? RE: The Brain not working as expected (or is it me?) - Snoopy - 05-08-2020 (05-08-2020, 11:27 AM)philsmd Wrote: Can you show also the server logs ? do the IDs change ? do u mean this? Code: 1588925438.782727 | 0.01s | 0 | Generated authentication password: RE: The Brain not working as expected (or is it me?) - philsmd - 05-08-2020 could you please try with latest beta version from https://hashcat.net/beta/ ? just to make sure we are testing with the same version / code. RE: The Brain not working as expected (or is it me?) - Snoopy - 05-08-2020 same workflow as above Code: Recovered........: 1/5 (20.00%) Digests Code: Recovered........: 2/5 (40.00%) Digests Code: Recovered........: 3/10 (30.00%) Digests Brain-Server Code: Session: 0xbc75b2c2, Attack: 0x929e9cd4 it seems The Brain did not recognize the new file / session correctly, am i right? RE: The Brain not working as expected (or is it me?) - philsmd - 05-08-2020 I currently can't reproduce to get an identical session ID with different hash lists. could you please provide your full server and client commands and also the hash lists (PM is also okay, or even a similar generated example that leads to the same problem). do you use --potfile-disable ? are there duplicate hashes, are some hashes already in the potfile ? please give a full example with commands that we can try to reproduce. Thank you very, very much ![]() RE: The Brain not working as expected (or is it me?) - Snoopy - 05-08-2020 setup windows 10 1903 (18362.778) , hashcat beta, new directory, no old potfile starting server Code: .\hashcat.exe --brain-server "generating my hashes and dict" i know it is forbidden to post hashes so u have to generate it for yourself (easy enough md5) the files are input:hash (--username option) hash-1.txt Code: 7: Code: 7: my sample dicts are also quite simple dict-1.txt Code: 0 Code: 0 Code: 0 used client commands Code: .\hashcat.exe -z --brain-password=*insert autogenerated pw* --brain-client-features=3 --username -a 0 -m 0 .\hash-1.txt .\dict-1.txt the potfile starts empty and after each run 1 pw is found/added (7, 123, 1234567890) RE: The Brain not working as expected (or is it me?) - philsmd - 05-09-2020 wow, thanks. I can reproduce now and suspect the bug is located here: https://github.com/hashcat/hashcat/blob/d34381680d1d0d49fb8db5f94575372b73802739/src/brain.c#L119 the index out_idx is never increased (no out_idx++) therefore we currently incorrectly only check the last hash in the sorted list. What a strange/nasty bug. Will discuss this problem with other devs, most importantly with atom, and we will try to fix it soon and build a new beta for testing (not yet available, will propably give an announcement here, if I do not forget). Thanks for reporting. What a nice find ! update: should be fixed now with this new commit https://github.com/hashcat/hashcat/commit/08ea00020a6f727cc0e876ec17668e11bb684787 , thanks again and would of course be great if you could test the new version (from github or any beta >= hashcat-5.1.0+1795 from https://hashcat.net/beta/). Thx RE: The Brain not working as expected (or is it me?) - Snoopy - 05-10-2020 will try it tomorrow when im back... RE: The Brain not working as expected (or is it me?) - Snoopy - 05-11-2020 hashcat (v5.1.0-1795-g08ea0002) setup as above Code: Recovered........: 1/5 (20.00%) Digests Code: Recovered........: 2/5 (40.00%) Digests Code: Recovered........: 5/10 (50.00%) Digests Serverlog Code: Session: 0x81039c62, Attack: 0x0ebd08bb plz be aware, that run 2 is now not working as expected (new session-id on hash-1.txt, not dropping already used pw) run 2 should have the same session-id like run 1 but with different attack-id as i understand the brain im really not that deep into c, so i can not really see how session-id is calculated (i see some vars regarding hashes and salts, a loop etc.) so i can only guess, maybe the already found pw is excluded, so hash-1.txt get a new session-id. |