0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

Beginner picoMini 2022 writeup PW Crack 1

Last updated at Posted at 2024-06-10

PW Crack 1 (General Skills)

Can you crack the password to get the flag? Download the password checker here and you'll need the encrypted flag in the same directory too.

添付ファイル
・level1.py
・level1.flag.txt.enc

とりあえず、level1.pyを実行してみると、パスワードの入力を求められた。
level1.pyのコードを確認すると、

def level_1_pw_check():
    user_pw = input("Please enter correct password for flag: ")
    if( user_pw == "1e1a"):
        print("Welcome back... your flag, user:")
        decryption = str_xor(flag_enc.decode(), user_pw)
        print(decryption)
        return
    print("That password is incorrect")

とある。user_pwが1e1aであればフラグが得られるらしいので、もう一度level1.pyを実行してパスワード1e1aを入力する。
picoCTF{545h_r1ng1ng_fa343060}

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?