mirror of
https://github.com/radareorg/radare2-r2pipe.git
synced 2026-11-08 01:09:27 -10:00
19 lines
324 B
Python
19 lines
324 B
Python
import os
|
|
import r2pipe
|
|
|
|
r2 = r2pipe.open("http://cloud.radare.org")
|
|
print(r2.cmd("?e one"))
|
|
r2.quit()
|
|
|
|
r2 = r2pipe.open("/bin/ls")
|
|
print(r2.cmd("?e one"))
|
|
print(r2.cmd("?e two"))
|
|
r2.quit()
|
|
|
|
r2 = r2pipe.open("/bin/ls")
|
|
os.system("ps auxw| grep radare2")
|
|
print(r2.cmd("?e tri"))
|
|
r2.quit()
|
|
|
|
os.system("ps auxw| grep radare2")
|