Please note, this is a STATIC archive of website hashcat.net from 08 Oct 2020, cach3.com does not collect or store any user information, there is no "phishing" involved.

hashcat Forum

Full Version: Defining an algorithim
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
I need to crack an sha256 hash

I know that the encrypted string follows this pattern

#-XXXXXXXXXX

#= A number generated between 1 and 25
X= Character generated from one of the below

abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890

So it could be something like this:

20-2lje2ezTvu

or

2-wa4tnSoYWB

I wrote a code for this in java but that uses CPU and is super slow.
Assuming I use hashcat-gui and oclHashcat-lite what exactly do I put in.
Anyone interested in the java code: https://pastebin.com/fqddhKjJ

Thanks for the help everyone!
what you want to do is a mask attack.

https://hashcat.net/wiki/doku.php?id=mask_attack
(09-26-2013, 06:38 AM)epixoip Wrote: [ -> ]what you want to do is a mask attack.

https://hashcat.net/wiki/doku.php?id=mask_attack

As helpful as that was I still don't get how I generate a random number between 1-25. Because it can't be 01,02,03,...,23,24,25. It has to be 1,2,3,...,23,24,25.
break it up and use a different mask for each pass. nothing says you have to do it all at once...

-1 ?l?u?d ?d-?1?1?1?1?1?1?1?1?1?1
-1 ?l?u?d 1?d-?1?1?1?1?1?1?1?1?1?1
-1 ?l?u?d -2 12345 2?2-?1?1?1?1?1?1?1?1?1?1
... pro tip: with oclHashcat-plus and a .hcmask file you could do it all at once (one run of oclHashcat-plus only Wink ).

Code:
$ cat my.hcmask
?l?u?d,?d-?1?1?1?1?1?1?1?1?1?1
?l?u?d,1?d-?1?1?1?1?1?1?1?1?1?1
?l?u?d,12345,2?2-?1?1?1?1?1?1?1?1?1?1
(09-26-2013, 07:06 AM)epixoip Wrote: [ -> ]break it up and use a different mask for each pass. nothing says you have to do it all at once...

-1 ?l?u?d ?d-?1?1?1?1?1?1?1?1?1?1
-1 ?l?u?d 1?d-?1?1?1?1?1?1?1?1?1?1
-1 ?l?u?d -2 12345 2?2-?1?1?1?1?1?1?1?1?1?1

Thanks, I made a .bat with these parameters:


How do I enable all 3 masks? I'm sorry I'm very new with this.
(09-26-2013, 07:28 AM)philsmd Wrote: [ -> ]... pro tip: with oclHashcat-plus and a .hcmask file you could do it all at once (one run of oclHashcat-plus only Wink ).

Code:
$ cat my.hcmask
?l?u?d,?d-?1?1?1?1?1?1?1?1?1?1
?l?u?d,1?d-?1?1?1?1?1?1?1?1?1?1
?l?u?d,12345,2?2-?1?1?1?1?1?1?1?1?1?1


Sorry but how exactly do I do this>
You can use any text editor you want to create a file called my.hcmask (or whatever you want to call it), put the content I just showed you:
Code:
?l?u?d,?d-?1?1?1?1?1?1?1?1?1?1
?l?u?d,1?d-?1?1?1?1?1?1?1?1?1?1
?l?u?d,12345,2?2-?1?1?1?1?1?1?1?1?1?1
in the file and use it in your command line as such:
Code:
oclHashcat-plus64.exe --hash-type 1400 --attack-mode 3 --force XXXXb97304ab69679f4XXXX7fa80608cXX5cbec61cb2XXX916d3cXXXa4eabXXX
my.hcmask

Also please remove the hash you just posted ASAP (see: https://hashcat.net/forum/announcement-2.html , edit the post and e.g replace the hash with this one: XXXXb97304ab69679f4XXXX7fa80608cXX5cbec61cb2XXX916d3cXXXa4eabXXX )
it wouldn't be worth using plus just for hcmask support due to the performance hit.
Is the plan to add support for hcmask files in lite at some point?
Pages: 1 2