converting to hash few times
#6
(04-10-2025, 01:42 AM)soul786 Wrote: i dont know coding at all

if someone can make such a plugin for hashcat i can pay for such plugin
or should i ask in developer forum to make such addon

Do you have a password you wanna try or do you try to implement some kind of bruteforce?

If you have a password or even a list, you can use https://www.techsolvency.com/pub/bin/mdxfind/ with optiion -i for iterate on this purpose, sha256 is supported, or for learning purposes you can use google, chatgpt and write your own litte pythonscript (should be nothing more than 20-30 lines of code i guess)

EDIT: tried it myself so 18 LOC for Python, this will output the first 10 iterations of the input test (utf-8 input and lowercase for sha256 output)

Code:
from hashlib import sha256

def get_sha256(data):
    if isinstance(data, str):
        data = data.encode('UTF-8')
    sha256_hash = sha256(data).hexdigest()
    return sha256_hash

def main():
    print(f'Round: Hash:')
    input_data = "test"
    for i in range(1,11):
        hash_value = get_sha256(input_data)
        input_data = hash_value
        print(f'{i} {hash_value}')
if __name__ == '__main__':
    main()

you can check the output with any online sha256 generator but its working

the only problems which could occur is input encoding when using special chars like german öäü, because utf-8 and ISO-8859-15 or Windows1252 will generate different hashes for the first round, or whether your sha256 output was lowercase or uppercase (same problem, as lower and upper will generate different hashes for each iteration)

so you need to know how your sha256 generator worked, or you try it and check the first output
Reply


Messages In This Thread
converting to hash few times - by soul786 - 04-09-2025, 02:47 PM
RE: converting to hash few times - by Snoopy - 04-09-2025, 08:22 PM
RE: converting to hash few times - by soul786 - 04-10-2025, 01:42 AM
RE: converting to hash few times - by Snoopy - 04-10-2025, 12:54 PM