Completed challenge 247
This commit is contained in:
parent
6904e909c6
commit
b6d732114a
@ -35,8 +35,8 @@ def level_3_pw_check():
|
|||||||
print("That password is incorrect")
|
print("That password is incorrect")
|
||||||
|
|
||||||
|
|
||||||
|
if __name__ == '__main__':
|
||||||
level_3_pw_check()
|
level_3_pw_check()
|
||||||
|
|
||||||
|
|
||||||
# The strings below are 7 possibilities for the correct password.
|
# The strings below are 7 possibilities for the correct password.
|
||||||
|
6
247/solve.py
Normal file
6
247/solve.py
Normal 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))
|
Loading…
Reference in New Issue
Block a user