mirror of
https://github.com/radareorg/radare2-r2pipe.git
synced 2026-11-08 09:39:32 -10:00
10 lines
195 B
Python
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")
|