Codebook: BEGINNER PICOMINI CTF 2022 -WRITE-UPS

BEGINNER PICOMINI CTF 2022 -WRITE-UPS

logo

 Captur3-Th3-flag{771d8b994c7e0f1d990f128eb7c18db5}

All of the Beginner-level picoMini CTF 2022 challenges are documented in this post.

1. Codebook

 

Step 1: Download the python script and.txt file that is provided.
 
Step 2: Using Python3, run the code.py (Python script) with the codebook.txt file in the same directory.
 


Here’s Your Flag: picoCTF{c0d3b00k_455157_7d102d7a}

 
Brief explanation: The two files are provided in this challenge. The first is code.py, a python file, and the second is codebook.txt, a text document. We are expected to run code.py (a Python script) in the same directory as a codebook.txt (a text document). Then, after running code.py in Python 3 against the codebook.txt file, we’ll retrieve our flag: picoCTF{c0d3b00k_455157_7d102d7a}.
 

2. fixme1.py

 
# Fix the IndentationError: unexpected indent.
 
This challenge includes one file. The file is called fixme1.py and it is written in Python. When we try to run the Python script, we get an error message called: IndentationError.
 
Incorrect:

Line 20 of the output contains an error. We can see whitespace in front of the print when we open the fixme1.py file in the editor. Removing the white space is the simplest way to remove this unexpected indent.

Correct:
Save the file. Then, using Python 3, run fixme1.py.
 

Here’s your flag:  picoCTF{1nd3nt1ty_cr1515_09ee727a}.

 
 

Step 1: Download the Python script that is provided called fixme1.py.

 
Step 2: Open the Python script with an IDE.
 
Step 3: Remove the whitespace before print.
 
Step 4: Using Python3, run fixme1.py.
 

Step 5: Here’s your flag:  picoCTF{1nd3nt1ty_cr1515_09ee727a}.

 

 

 

Leave a Comment

Your email address will not be published. Required fields are marked *