Published onJuly 18, 2023AmateurCTF '23 - Pwn - Elfcrafting-V1ctfpwnamateurctfamateurctf23writeupelfelfcrafting-v1memfd_createfexecveSending a shebang to let fexecve execute a command for us and get the flag.
Published onJuly 18, 2023AmateurCTF '23 - Pwn - Elfcrafting-V2ctfpwnamateurctfamateurctf23writeupelfelfcrafting-v2memfd_createfexecveshellcodeasmCrafting a custom ELF binary in assembly to execute /bin/sh and inject that inside the file descriptor using memfd_create and fexecve.