Pico CTF


Python Wrangling

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?

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/8e33ede04d02f3765b8c6a6e24d72733/ende.py
  2. $ man python
  3. $ man nano

Solution

picoCTF{4p0110_1n_7h3_h0us3_192ee2db}

CLI

$ wget "https://mercury.picoctf.net/static/5c4c0cbfbc149f3b0fc55c26f36ee707/ende.py"
$ wget "https://mercury.picoctf.net/static/5c4c0cbfbc149f3b0fc55c26f36ee707/pw.txt"
$ wget "https://mercury.picoctf.net/static/5c4c0cbfbc149f3b0fc55c26f36ee707/flag.txt.en"

$ nano ende.py

$ cat pw.txt
192ee2db192ee2db192ee2db192ee2db

$ python ende.py -d flag.txt.en
Please enter the password:
picoCTF{4p0110_1n_7h3_h0us3_192ee2db}