๋ณธ๋ฌธ ๋ฐ”๋กœ๊ฐ€๊ธฐ
โœ’๏ธ Capture The Flag (CTF)

[CSAW CTF 2023] Baby's First Write Up

by A Lim Han 2023. 9. 16.

๐Ÿ›น Baby's First Write Up

1.  ๋ฌธ์ œ ํ™•์ธ ํ›„ ์ฒจ๋ถ€ ํŒŒ์ผ ๋‹ค์šด๋กœ๋“œ

2.  ๋‹ค์šด๋ฐ›์€ babyfirst.py ํŒŒ์ผ์„ ์—ด์–ด ์ฝ”๋“œ ํ™•์ธ

#!/usr/bin/env python3

# Reversing is hard. But....not always.
#
# Usually, you won't have access to source.
# Usually, these days, programmers are also smart enough not to include sensitive data in what they send to customers....
#
# But not always....

if input("What's the password? ") == "csawctf{w3_411_star7_5om3wher3}":
ใ…คใ…คprint("Correct! Congrats! It gets much harder from here.")
else:
ใ…คใ…คprint("Trying reading the code...")

# Notes for beginners:
#
# This is Python file. You can read about Python online, but it's a relatively simple programming language.
# You can run this from the terminal using the command `python3 babysfirst.py`, but I'll direct you to the internet again
# for how to use the terminal to accomplish that.
#
# Being able to run this file is not required to find the flag.
#
# You don't need to know Python to read this code, to guess what it does, or to solve the challenge.

3.  If ๋ฌธ์˜ ์ดˆ๋ฐ˜๋ถ€์—์„œ Flag์˜ ํ˜•์‹์„ ๊ฐ–์ถ˜ ๋ฌธ์ž์—ด ๋ฐœ๊ฒฌ

 

csawctf{w3_411_star7_5om3wher3}

4.  ๋‹ค์‹œ ๋ฌธ์ œ ํ™”๋ฉด์œผ๋กœ ๋Œ์•„์™€ ๋ฐœ๊ฒฌํ•œ ๋ฌธ์ž์—ด ์ž…๋ ฅ  -->  ๋ฌธ์ œ ํ•ด๊ฒฐ ์„ฑ๊ณต