How hashcat deal with a list of hash?
#3
(07-20-2023, 03:38 AM)rodrigo.Brasil Wrote: At the end of the day, all hashcat does is just this (in python):

Code:
list_of_hash = []          
with open("wordlist.txt","r") as f:
    for line in f:                 
        calculate = hashlib.md5(line)
        for h in list_of_hash:
            if h == calculate:
                print(f"{h}:{line}")

This is NOT a good representation of how hashcat works and will give you a poor understanding of the parallel processing that takes places. Internally, hashcat executes many many parallel threads to do work, it doesn't just iterate over things so simply. To do comparisons and lookups against a list of hashes, hashcat processes the input hashes into a "bitmap" or "bloom filter" and uses that for searches. We don't just load all hashes into memory, that would be both slow and wasteful.
Reply


Messages In This Thread
RE: How hashcat deal with a list of hash? - by Chick3nman - 07-20-2023, 06:16 PM