Description

Fix the syntax error in the Python script to print the flag.Download Python script


Step 1

Download the python script using wget on the picoCTF webshell

wget https://artifacts.picoctf.net/c/6/fixme2.py

Step 2

try to run the file

python fixme2.py 
  File "/home/g2_pilot_tester-picoctf/fixme2.py", line 22
    if flag = "":
       ^^^^^^^^^
SyntaxError: invalid syntax. Maybe you meant '==' or ':=' instead of '='?

using nano change the line 22 to if flag == "":

Flag