picoctf/248/solve.py

6 lines
212 B
Python

#!/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))