mirror of
https://github.com/radareorg/radare.git
synced 2026-11-09 04:29:36 -10:00
* Initial working implementation of the ruby remote api - For server and client - Added examples * Fix cmd and system for python remote bindings * Properly close the connections and start listening again on the ruby and python bindings for the remote server * Drop '2>/dev/null' when building python and perl plugins * Fix 'pz' command when block doesnt ends with '\0' (only happens when block > filesize. Current implementation is slower but more secure
12 lines
227 B
Python
12 lines
227 B
Python
import sys
|
|
sys.path.append('.')
|
|
import radare.remote
|
|
|
|
c = radare.remote.RapClient('localhost', 9999)
|
|
#c = RapClient('localhost', 9999)
|
|
fd = c.open("/bin/ls", 0)
|
|
print c.cmd("px")
|
|
print c.system("ls")
|
|
c.close(fd)
|
|
c.disconnect()
|