picoctf/248/solve.py

6 lines
212 B
Python
Raw Normal View History

2022-05-17 13:17:39 +02:00
#!/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))