Dictionary Attack with increment
#1
Is there a way to do a dictionary attack with an increment, so, say I know the password is 8 characters. Can the dictionary attack go through and only try the 8 letter words in the dictionary? Thanks in advance.
Reply
#2
https://hashcat.net/wiki/
Reply
#3
To be fair, there's not a lot on the wiki to answer this specific question.

Some folks would probably either one-time filter the wordlist on the fly with `grep` or similar, or else grep it once and save the results, depending on the size of the wordlist.

You can also use `-j` with a rules file that contains `_8` ("_" is a "reject" rule, but only works with `-j` / `-k`).

https://hashcat.net/wiki/doku.php?id=rul...ect_plains
~
Reply
#4
(08-02-2023, 11:21 PM)royce Wrote: To be fair, there's not a lot on the wiki to answer this specific question.

Some folks would probably either one-time filter the wordlist on the fly with `grep` or similar, or else grep it once and save the results, depending on the size of the wordlist.

You can also use `-j` with a rules file that contains `_8` ("_" is a "reject" rule, but only works with `-j` / `-k`).

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

Thank you, I was just looking into grep. I used power shell in windows to Get-Content D:\Wordlist\weakpass_3a | Select-String "^.{8}$" > 8_letter_words.txt and it's currently compiling the list of 8 letters saving to file. 

I will def look into the other option you offered. -j. I appreciate your help and leads you have given me. I'm new to hashcat and looking to explore all its capabilities and the like. Thanks again
Reply
#5
(08-02-2023, 10:45 PM)marc1n Wrote: https://hashcat.net/wiki/

Thank you.
Reply
#6
(08-02-2023, 11:21 PM)royce Wrote: To be fair, there's not a lot on the wiki to answer this specific question.

Some folks would probably either one-time filter the wordlist on the fly with `grep` or similar, or else grep it once and save the results, depending on the size of the wordlist.

You can also use `-j` with a rules file that contains `_8` ("_" is a "reject" rule, but only works with `-j` / `-k`).

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

I've updated the command, as it was choosing 8 characters, but it was also choosing 9 and up characters as well, so the modified command is below, just in case someone else is trying to do something similar you can pass it on.

Get-Content D:\Wordlist\all_in_one_p | Where-Object { $_.Length -eq 8 } > 8_letter_words.txt
(ruining under windows Power Shell will only choose 8 characters, just change D:\Wordlist\all_in_one_p  where your wordlist is currently and the words.txt output will be under C:\Users\your pc name here\  )
Reply
#7
Ah, I totally forgot - hashcat-utils 'len' utility also supports this, efficiently.
~
Reply
#8
(08-03-2023, 09:32 PM)royce Wrote: Ah, I totally forgot - hashcat-utils 'len' utility also supports this, efficiently.

Nice, thank you. Just took a look @ it and def will use this option as well. Appreciate your time Royce.
Reply