CTF · General Skills · picoCTF

Python Wrangling

Link To Solve the Labs:- https://play.picoctf.org/practice/challenge/166?category=5&page=1

Hello Everyone,

So Today we are Solving the Lab in the ‘Cryptography’ Category

All the things we are doing are in Kali Linux.

As you can see in the Screenshot of the Description

Description

Python scripts are invoked kind of like programs in the Terminal… Can you run this Python script using this password to get the flag?

Above Description Explanation

There are Three Files that we have to Download to Solve this Lab

List of files

  1. Ende.py
  2. pw.txt
  3. flag.txt.en

Above are the Three Files we have to Download

Hints

  1. Get the Python script accessible in your shell by entering the following command in the Terminal prompt: $ wget https://mercury.picoctf.net/static/325a52d249be0bd3811421eacd2c877a/ende.py
  2. man python

Above Hint’s Explanation

  1. We were able to learn how to download the files using the wget command from the first hint.
  2. The command for the Descriptive Help menu

Steps

  1. Make a New Directory
  2. Download all three files in the same directory
  3. Display password using cat command(cat pw.txt)
  4. Run Python script with the file we want to Decrypt
  5. Enter Password

Commands to run in each Step

mkdir Python Wrangling

wget https://mercury.picoctf.net/static/325a52d249be0bd3811421eacd2c877a/ende.py

wget https://mercury.picoctf.net/static/325a52d249be0bd3811421eacd2c877a/pw.txt

wget https://mercury.picoctf.net/static/325a52d249be0bd3811421eacd2c877a/flag.txt.en

python ende.py -d flag.txt.en

Screenshot of the Above Steps

So the Lab is Solved.

Flag :- picoCTF{4p0110_1n_7h3_h0us3_ac9bd0ff}

Leave a Reply

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