diff options
| author | jerome <jerome@xlinfo.fr> | 2025-06-15 19:09:40 +0200 |
|---|---|---|
| committer | jerome <jerome@xlinfo.fr> | 2025-06-15 19:09:40 +0200 |
| commit | b6d1432307e4c69a2c8410228874600a20d67648 (patch) | |
| tree | 9a388ccb9f395cc656461403e4b557abae797dca /crack_hash.py | |
| parent | 0c36ccbf0383975dfccc2280646140c359f4d7b6 (diff) | |
| download | python-b6d1432307e4c69a2c8410228874600a20d67648.tar.gz python-b6d1432307e4c69a2c8410228874600a20d67648.zip | |
crack_md5
Diffstat (limited to 'crack_hash.py')
| -rw-r--r-- | crack_hash.py | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/crack_hash.py b/crack_hash.py index 050073c..ca68898 100644 --- a/crack_hash.py +++ b/crack_hash.py @@ -17,12 +17,10 @@ def crack_hash(hashlist, wordlist, hashsum): with open(wordlist, "r") as fichier2: lignes = fichier2.readlines() for ligne in lignes: - # if hashlib.md5(ligne.strip().encode()).hexdigest() == hash.strip(): if getattr(hashlib,hashsum)(ligne.strip().encode()).hexdigest() == hash.strip(): print(f"trouvé: {ligne.strip()}") break - if __name__ == "__main__": try: crack_hash(sys.argv[1], sys.argv[2], sys.argv[3]) |
