![]() |
known mask structure - Printable Version +- hashcat Forum (https://hashcat.net/forum) +-- Forum: Deprecated; Previous versions (https://hashcat.net/forum/forum-29.html) +--- Forum: Old oclHashcat Support (https://hashcat.net/forum/forum-38.html) +--- Thread: known mask structure (/thread-3515.html) |
known mask structure - anon4250158 - 07-01-2014 The strings that are being hashed (SHA256) in my case follow this rule: xxxxxxxxxxxx|1:1:1 In words: It is twelve random hex characters (0-9,ABCDEF) followed by a pipe, followed by a timestamp of the format h:m:s. Hours range from 0-23, mins and secs from 0-59. There is no padding for numbers less than 10 (ie, what would normally be written as 13:07:01 is represented here as 13:7:1, meaning there could be one OR two digits). To get the hex chars, I can set the custom-charset 1 to ?dabcdef, but how do I define a mask that contains a pipe, colons, and different numbers of digits for the timestamp? Using Windows 7 and CudaHashcat64 RE: known mask structure - philsmd - 07-01-2014 Read here: http://hashcat.net/wiki/doku.php?id=mask_attack You could easily do this w/ a combination of custom charsets ( http://hashcat.net/wiki/doku.php?id=mask_attack#custom_charsets ), some masks and the .hcmask file feature http://hashcat.net/wiki/doku.php?id=mask_attack#hashcat_mask_files For instance your .hcmask file could look something like this (not tested but you may get the idea): Code: $ cat my.hcmask You need several lines because you have several limitations...=> several different masks Everything "character" that should be literally in your mask you just include directly in the mask, as shown above. Note: you said that the mask is upper-case hex 0-9A-F but than used ?dabcdef... If it is lowercase hex then you need to change the first custom charset to ?dabcdef You can use this mask file as you would use any other mask w/ -a 3 my.hcmask Furthermore, note that the keyspace is quite huge, having 12 random hex chars isn't (depending on the hash algo) that easy/fast to bruteforce |