Last active
November 13, 2022 17:13
-
-
Save FerranAD/1c5e75d5926a1e13cf8320729c103335 to your computer and use it in GitHub Desktop.
Generador del diccionari de hashes precomputats
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from dict_attack import DictAttacker, SALT, ENC_FILE, DICT | |
OUTPUT_FILE = 'precomputed_dict.txt' | |
# Per cada constrasenya generada, es calcula la clau i es guarda en un fitxer junt amb la contrasenya | |
def main(): | |
attacker = DictAttacker(DICT, ENC_FILE, SALT) | |
with open(OUTPUT_FILE, 'w') as f: | |
for password in attacker.generate_passwords(): | |
f.write(password + ' -> ' + attacker.get_pbkdf2_key(password).hex() + '\n') | |
if __name__ == '__main__': | |
main() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment