Files
radare2-r2pipe/python/dbgtest.py

10 lines
195 B
Python

#!/usr/bin/env python3
import r2pipe
r2 = r2pipe.open("/bin/ls", ["-nd"])
for a in range(1, 10):
regs = r2.cmdj("drj")
print("0x%x 0x%x" % (regs["rip"], regs["rsp"]))
r2.cmd("ds")