ctf_aria

write up ctf by ariafatah


Project maintained by ariafatah0711 Hosted on GitHub Pages — Theme by mattgraham

soal

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

hint

solve

wget https://mercury.picoctf.net/static/1b247b1631eb377d9392bfa4871b2eb1/ende.py
wget https://mercury.picoctf.net/static/1b247b1631eb377d9392bfa4871b2eb1/pw.txt
wget https://mercury.picoctf.net/static/1b247b1631eb377d9392bfa4871b2eb1/flag.txt.en

ls
# ende.py  flag.txt.en  pw.txt

python3 ende.py
# Usage: ende.py (-e/-d) [file]

cat flag.txt.en
# gAAAAABgUAIWuksW6PU7W1WFXiBWkF2S8VhtL_5335iazHhuBnWloiyt3ZAFwR2zyuG7iZLSVPaQIZLTxgo-WXIk6Cnk7-KZm1g1qo_v1zDMK5wDocmVFxL0o5ae6OrB9VKdh3HerIsy

cat pw.txt
# dbd1bea4dbd1bea4dbd1bea4dbd1bea4

python3 ende.py -d flag.txt.en
# Please enter the password:dbd1bea4dbd1bea4dbd1bea4dbd1bea4
# picoCTF{4p0110_1n_7h3_h0us3_dbd1bea4}

flag

picoCTF{4p0110_1n_7h3_h0us3_dbd1bea4}