name | event | category | description | layout | ||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Split (2021) |
HackTheBox x Synack RedTeamFive CTF 2021 |
Rev |
Writeup for Split (rev) - HackTheBox x Synack RedTeamFive CTF (2021) 💜 |
|
{% code overflow="wrap" %}
from pwn import *
# Load our binary
exe = 'split'
elf = context.binary = ELF(exe, checksec=False)
# Patch out the call to ptrace ;)
elf.asm(elf.symbols.ptrace, 'ret')
# Save the patched binary
elf.save('patched')
{% endcode %}