CTF Python Wrangling

kikiyang
Jul 12, 2023

--

Python Wrangling (10 points) — General Skills

¿QUESTION?

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

FILE

this Python script / this password / the flag

解法:

step.1

mkdir -> Add a new directory

Python Wrangling -> File name

mkdir Python Wrangling

step.2

cd -> Change directory

Python Wrangling -> File name

cd Python Wrangling

step.3

wget -> Web Get

https://mercury.picoctf.net/static/0bf545252b5120845e3b568b9ad0277e/ende.py

https://mercury.picoctf.net/static/0bf545252b5120845e3b568b9ad0277e/pw.txt ->File name

https://mercury.picoctf.net/static/0bf545252b5120845e3b568b9ad0277e/flag.txt.en ->File name

wget https://mercury.picoctf.net/static/0bf545252b5120845e3b568b9ad0277e/ende.py
wget https://mercury.picoctf.net/static/0bf545252b5120845e3b568b9ad0277e/pw.txt
https://mercury.picoctf.net/static/0bf545252b5120845e3b568b9ad0277e/flag.txt.en

step.4

cat -> 查看內容

pw.txt -> File name

cat pw.txt

step.5

-d -> 解密

python ende.py -d flag.txt.en

step.6

enter the password : 6008014f6008014f6008014f6008014f

6008014f6008014f6008014f6008014f

ANSWER

picoCTF{4p0110_1n_7h3_h0us3_6008014f}

完整過程
參考資料

by ki 2023.07.05

--

--

kikiyang

うまくいくように願っています / 파이팅 / ¡Ánimo! / Fighting!