runme.py
Name: runme.py Description: Run the runme.py script to get the flag. Download the script with your browser or with wget in the webshell. Download runme.py Python script Author: Sujeet Kumar Tags: Easy, General Skills, Beginner picoMini 2022, Python Challenge from: Beginner picoMini 2022 Files: runme.py Hints: 1. If you have Python on your computer, you can download the script normally and run it. Otherwise, use the wget command in the webshell. 2. To use wget in the webshell, first right click on the download link and select 'Copy Link' or 'Copy Link Address' 3. Type everything after the dollar sign in the webshell: $ wget , then paste the link after the space after wget and press enter. This will download the script for you in the webshell so you can run it! 4. Finally, to run the script, type everything after the dollar sign and then press enter: $ python3 runme.py You should have the flag now!
Theory
According to the description, to get the flag we have to execute a python script, and that seems to be it. Now that I look at the hints, they seem to be giving us sooo much information for what seems to be the simplest of tasks, so that makes me a little too much intrigued into what might be in this python program.
Solution
Let's download that code:
#!/usr/bin/python3 ################################################################################ # Python script which just prints the flag ################################################################################ flag ='picoCTF{run_s4n1ty_run}' print(flag)
The script just prints the flag?! That's it??? Okay well, I don't even need to execute it anymore, it's just there. Bruh.
There we go! That's the flag.
I rated this level as "not good"! :(
https://play.picoctf.org/practice/challenge/250