Created
January 14, 2023 11:07
-
-
Save sharpicx/8db50b5d69ba210e77850ba5fc4223ba to your computer and use it in GitHub Desktop.
md5 cracker
This file contains hidden or 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
# sharpicx @ iampuffer.xyz | |
# hackmyvm wmessage machine solution | |
import hashlib | |
password = '85c73111b30f9ede8504bb4a4b682f48' # hash to be cracked | |
def main(): | |
with open('/home/via/Desktop/rockyou.txt', encoding="utf-8", errors="ignore") as passwords: # make a dictiobary to a variable | |
password_lines = passwords.readlines() # reading a password file | |
for word in password_lines: # start a loop to password_lines | |
pemisah = word.replace("\n", "") # replacing a new line into the word to be printed | |
guess = hashlib.md5((pemisah.strip() + "\n").encode()).hexdigest() | |
if str(guess) == password: | |
print(f"[+] password found: {word}") # print corrected message | |
if __name__ == "__main__": | |
main() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment