題目連結

https://learn.cylabacademy.org/library/742

題目解法

  1. 下載題目提供的原始碼後,,可以看到第11行顯示當使用者輸入 3 個連續 e 時,就會印出 flag。
    app.py

     1
     2
     3
     4
     5
     6
     7
     8
     9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    
    while(True):
      try:
        print('⊹──────[ BYTEMANCY-0 ]──────⊹')
        print("☍⟐☉⟊☽☈⟁⧋⟡☍⟐☉⟊☽☈⟁⧋⟡☍⟐☉⟊☽☈⟁⧋⟡☍⟐")
        print()
        print('Send me ASCII DECIMAL 101, 101, 101, side-by-side, no space.')
        print()
        print("☍⟐☉⟊☽☈⟁⧋⟡☍⟐☉⟊☽☈⟁⧋⟡☍⟐☉⟊☽☈⟁⧋⟡☍⟐")
        print('⊹─────────────⟡─────────────⊹')
        user_input = input('==> ')
        if user_input == "\x65\x65\x65":
          print(open("./flag.txt", "r").read())
          break
        else:
          print("That wasn't it. I got: " + str(user_input))
          print()
          print()
          print()
      except Exception as e:
        print(e)
        break
    

  2. 使用 nc 連線後輸入三個 e 就可以獲得 flag 了。

    $ nc candy-mountain.picoctf.net 54966
    ⊹──────[ BYTEMANCY-0 ]──────⊹
    ☍⟐☉⟊☽☈⟁⧋⟡☍⟐☉⟊☽☈⟁⧋⟡☍⟐☉⟊☽☈⟁⧋⟡☍⟐
    
    Send me ASCII DECIMAL 101, 101, 101, side-by-side, no space.
    
    ☍⟐☉⟊☽☈⟁⧋⟡☍⟐☉⟊☽☈⟁⧋⟡☍⟐☉⟊☽☈⟁⧋⟡☍⟐
    ⊹─────────────⟡─────────────⊹
    ==> eee
    picoCTF{pr1------------------7a7}