Skip to content

Instantly share code, notes, and snippets.

View Starwarsfan2099's full-sized avatar
💭
Programming

Andrew Clark Starwarsfan2099

💭
Programming
  • Earth
View GitHub Profile
@Starwarsfan2099
Starwarsfan2099 / zwiebel.py
Created October 17, 2019 00:18 — forked from LiveOverflow/zwiebel.py
TUM CTF 2016
import sys
import r2pipe
r2 = r2pipe.open("./zwiebel2")
r2.cmd("e dbg.profile=zwiebel.rr2")
r2.cmd("doo") # reopen for debugging
r2.cmd("db 0x400875") # set breakpoint at `call r14`
r2.cmd("dc") # continue until breakpoint is hit
def step():