Completed challenge 248

This commit is contained in:
Michael Chen 2022-05-17 13:17:39 +02:00
parent 627ea845c1
commit df8f27bc36
No known key found for this signature in database
GPG Key ID: FD1BAF55F0CBDCF9
2 changed files with 8 additions and 2 deletions

View File

@ -35,7 +35,7 @@ def level_4_pw_check():
print("That password is incorrect") print("That password is incorrect")
if __name__ == '__main__':
level_4_pw_check() level_4_pw_check()

6
248/solve.py Normal file
View File

@ -0,0 +1,6 @@
#!/usr/bin/env python3
from level4 import *
correct_pw = next(pw for pw in pos_pw_list if hash_pw(pw) == correct_pw_hash)
print(f'Correct password is: {correct_pw}')
print(str_xor(flag_enc.decode(), correct_pw))