![]() |
Dictionary Attack with increment - Printable Version +- hashcat Forum (https://hashcat.net/forum) +-- Forum: Misc (https://hashcat.net/forum/forum-15.html) +--- Forum: General Talk (https://hashcat.net/forum/forum-33.html) +--- Thread: Dictionary Attack with increment (/thread-11536.html) |
Dictionary Attack with increment - Saduj - 08-02-2023 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. RE: Dictionary Attack with increment - marc1n - 08-02-2023 https://hashcat.net/wiki/ RE: Dictionary Attack with increment - royce - 08-02-2023 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=rule_based_attack#rules_used_to_reject_plains RE: Dictionary Attack with increment - Saduj - 08-02-2023 (08-02-2023, 11:21 PM)royce Wrote: To be fair, there's not a lot on the wiki to answer this specific question. 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 RE: Dictionary Attack with increment - Saduj - 08-03-2023 (08-02-2023, 10:45 PM)marc1n Wrote: https://hashcat.net/wiki/ Thank you. RE: Dictionary Attack with increment - Saduj - 08-03-2023 (08-02-2023, 11:21 PM)royce Wrote: To be fair, there's not a lot on the wiki to answer this specific question. 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\ ) RE: Dictionary Attack with increment - royce - 08-03-2023 Ah, I totally forgot - hashcat-utils 'len' utility also supports this, efficiently. RE: Dictionary Attack with increment - Saduj - 08-03-2023 (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. |