hashcat Forum
custom charset help - 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: custom charset help (/thread-9527.html)



custom charset help - ninjahhash - 09-23-2020

why doesnt this work?

Code:
hashcat -a 3  -m 110 hash -1 !"#$%&'()*+,-./:;<=>?@[\]^_`{|}~0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz --increment --increment-min 4 --increment-max 12 --hex-salt  pass.txt -O 1?1?1?1?1?1?1?1?1?1?1?1

i get an error

bash: !"#: event not found


RE: custom charset help - royce - 09-23-2020

Some of the characters are interpreted by your command shell - you might have to backslash one or more of the characters that have special meaning in the shell, such as !, $, ', ", etc.

But in your case, you can use an entire character class instead.
?l = all lower-case
?u = all upper-case
?d = all digits
?s = all special
?a = all of the above (all 95 printable ASCII)

So you can use this instead:

Code:
hashcat -a 3  -m 110 hash ?a?a?a?a?a?a?a?a?a?a?a?a --increment --increment-min 4 --increment-max 12 --hex-salt  pass.txt -O

Note, however, that there are a couple of other issues with this command line:

* ?a x12 will not finish any time soon - like, years
* --hex-salt doesn't do anything if you're not specifying a salt to use


RE: custom charset help - ninjahhash - 09-23-2020

ok that worked, thanks

Now i'm getting this error

clCreateCommandQueue(): CL_OUT_OF_HOST_MEMORY

any ideas?

(09-23-2020, 07:30 AM)royce Wrote: Some of the characters are interpreted by your command shell - you might have to backslash one or more of the characters that have special meaning in the shell, such as !, $, ', ", etc.

But in your case, you can use an entire character class instead.
?l = all lower-case
?u = all upper-case
?d = all digits
?s = all special
?a = all of the above (all 95 printable ASCII)

So you can use this instead:

Code:
hashcat -a 3  -m 110 hash ?a?a?a?a?a?a?a?a?a?a?a?a --increment --increment-min 4 --increment-max 12 --hex-salt  pass.txt -O

Note, however, that there are a couple of other issues with this command line:

* ?a x12 will not finish any time soon - like, years
* --hex-salt doesn't do anything if you're not specifying a salt to use



RE: custom charset help - royce - 09-23-2020

Huh - when I run it, the memory requirement looks pretty small:
Code:
Host memory required for this attack: 228 MB

Also FYI, hashcat will throw an integer overflow for this attack at ?a x10


RE: custom charset help - ninjahhash - 09-23-2020

What is an integer overflow attack and what does it mean?

For some reason when I use the full charset it doesnt run and I get the memory error....



(09-23-2020, 07:53 AM)royce Wrote: Huh - when I run it, the memory requirement looks pretty small:
Code:
Host memory required for this attack: 228 MB

Also FYI, hashcat will throw an integer overflow for this attack at ?a x10