Completed challenge 247

This commit is contained in:
Michael Chen 2022-05-17 13:13:22 +02:00
parent 6904e909c6
commit b6d732114a
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,8 +35,8 @@ def level_3_pw_check():
print("That password is incorrect")
level_3_pw_check()
if __name__ == '__main__':
level_3_pw_check()
# The strings below are 7 possibilities for the correct password.

6
247/solve.py Normal file
View File

@ -0,0 +1,6 @@
#!/usr/bin/env python3
from level3 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))