Files
[email protected] 70cff7bd24 * Fix install of new ruby api
* 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
2009-06-16 23:56:28 +00:00

10 lines
185 B
Ruby

require 'radare/api'
require 'radare/remote'
rc = RapClient.new()
rc.connect_tcp("127.0.0.1", 9999)
fd = rc.open("/bin/ls", 0)
buf = rc.read(10)
print Radare.bin2hex(buf)
rc.close(fd)