hashcat Forum
Can't workout why my mask isn't working. - Printable Version

+- hashcat Forum (https://hashcat.net/forum)
+-- Forum: Deprecated; Ancient Versions (https://hashcat.net/forum/forum-46.html)
+--- Forum: Very old oclHashcat-plus Support (https://hashcat.net/forum/forum-23.html)
+--- Thread: Can't workout why my mask isn't working. (/thread-1182.html)



Can't workout why my mask isn't working. - AutomaticCoding - 05-17-2012

Using hashcat-GUI, first I may want to note it's sort of annoying that it doesn't exit CMD after it's done. Yes, I understand it doesn't using a bat file, etc, but it's annoying.

Next, reason why I posted in this forum is it's generating these arguments:
Code:
cudaHashcat-plus64.exe --attack-mode 3 --remove --outfile C:\Users\Nicholas\Desktop\file.txt.out --outfile-format 2 C:\Users\Nicholas\Desktop\file.txt ?uld?uld?uld?uld?uld?uld

What I presume each one does:
-attack-mode 3 == bruteforce
--remove == remove hashes from file.txt when found
--outfile C:\-snip-\file.txt.out == output file to dump found hashes to
--output-file format 2 == plain
C:\-snip-\file.txt == file full of hashes
?uld?uld?uld?uld?uld?uld - Mask

Now, what I want:
6 letters, [A-Z0-9a-z].

If I have something like "Hi" in the file, and I do:
?u?l
it works fine. But if I have "Hi" in the file and do:
?ul?ul
it does nothing.

My file.txt:
Code:
c1a5298f939e87e8f962a5edfc206918
72559ffa937d50147fb1aacc6d06dda8
aee4bd941f8b4d9e39210c06c44fcb71
9cdfb439c7876e703e307864c9167a15
2b821a77e7e6b450c48d8ff9cecdfe67
5cf64262afe92b6ed1acad10189d320d
41b2f002a4f22002f2eaaca87f9afab3
49f0bad299687c62334182178bfd75d8
bf8df7545832e55cbe13bdce0c1b8715
39161658405719d89ba168500a51b04c
c6586b2e09d0ed0ee6431a1bb280657f
3700f097e741a7702f7e4ac61ed88c1a

Correct hashes in order:
Code:
<?php
    echo(md5("Hi") . "\n");
    echo(md5("L0L") . "\n");
    echo(md5("LOL") . "\n");
    echo(md5("lol") . "\n");
    echo(md5("£$^£%") . "\n");
    echo(md5("Fjgld") . "\n");
    echo(md5("yrti") . "\n");
    echo(md5("sad") . "\n");
    echo(md5("fdgd") . "\n");
    echo(md5("48fH$") . "\n");
    echo(md5("Pizza") . "\n");
    echo(md5("Yo") . "\n");
?>


Yes, I realize none of them are six characters and they're all five, but, better safe than sorry. (It does go up 1-6, right? Not just only scan 6?)


RE: Can't workout why my mask isn't working. - blaz - 05-17-2012

you need to set them all in the one form, ie -1 ?l?u?d ?1?1?1?1?1?1
cudaHashcat-plus64.exe --attack-mode 3 --remove --outfile C:\Users\Nicholas\Desktop\file.txt.out --outfile-format 2 -1 ?u?l?d C:\Users\Nicholas\Desktop\file.txt ?1?1?1?1?1?1

in plus it only runs the length you input, so for the command above it will only run for length 6, it does increment automatically in lite


RE: Can't workout why my mask isn't working. - AutomaticCoding - 05-17-2012

(05-17-2012, 11:39 AM)blaz Wrote: you need to set them all in the one form, ie -1 ?l?u?d ?1?1?1?1?1?1
cudaHashcat-plus64.exe --attack-mode 3 --remove --outfile C:\Users\Nicholas\Desktop\file.txt.out --outfile-format 2 -1 ?u?l?d C:\Users\Nicholas\Desktop\file.txt ?1?1?1?1?1?1

in plus it only runs the length you input, so for the command above it will only run for length 6, it does increment automatically in lite

Hey presto! It works. But, in length I notice it doesn't allow bruteforcing? Only "Rules". I may look into that later, but at the moment I'll just do:

String args = "cudaHashcat-plus64.exe --attack-mode 3 --custom-charset1 ?l?u?d --outfile C:\Users\Nicholas\Desktop\file.txt.out --outfile-format 2 C:\Users\Nicholas\Desktop\file.txt ";
for(int i = 1; i < MAXCHARCTERS; i++) {
args += "?1";
}
startProcess(args);

Or something. Thanks dude Smile


RE: Can't workout why my mask isn't working. - atom - 05-17-2012

these ?1 are masks not rules. rules are something complete different.

https://hashcat.net/wiki/mask_attack
https://hashcat.net/wiki/rule_based_attack