Posts: 4
Threads: 1
Joined: Sep 2013
09-26-2013, 06:35 AM
(This post was last modified: 09-26-2013, 06:55 AM by savvamadar15.)
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:
http://pastebin.com/fqddhKjJ
Thanks for the help everyone!
Posts: 2,936
Threads: 12
Joined: May 2012
Posts: 4
Threads: 1
Joined: Sep 2013
(09-26-2013, 06:38 AM)epixoip Wrote: what you want to do is a mask attack.
http://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.
Posts: 2,936
Threads: 12
Joined: May 2012
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
Posts: 2,267
Threads: 16
Joined: Feb 2013
09-26-2013, 07:28 AM
(This post was last modified: 09-26-2013, 07:30 AM by philsmd.)
... pro tip: with oclHashcat-plus and a
.hcmask file you could do it all at once (one run of oclHashcat-plus only
).
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
Posts: 4
Threads: 1
Joined: Sep 2013
09-26-2013, 07:30 AM
(This post was last modified: 09-26-2013, 01:13 PM by savvamadar15.)
(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.
Posts: 4
Threads: 1
Joined: Sep 2013
(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 ).
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>
Posts: 2,267
Threads: 16
Joined: Feb 2013
09-26-2013, 07:40 AM
(This post was last modified: 09-26-2013, 07:42 AM by philsmd.)
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 )
Posts: 2,936
Threads: 12
Joined: May 2012
it wouldn't be worth using plus just for hcmask support due to the performance hit.
Posts: 55
Threads: 8
Joined: Apr 2013
Is the plan to add support for hcmask files in lite at some point?