Hi,

I've been playing a little with the remote protocol in radare and added
a new command called '='. It allows to establish connections with
several remote radares and interact with them.

You can access to the help, as usual, through '=?':

  ]> =?
   =                  ; List hosts
   =[fd] cmd          ; Exec cmd in host n
   =+ [proto://]host  ; Add host (default protocol is rap://)
   =-[fd]             ; Remove all hosts or host 'fd'
   ==[fd]             ; Open remote session with host 'fd'
   NOTE: Last used host comes to be default
         Use 'q' to quit session

But, lets introduce the command with a little example :) A typical
remote session could be:

- At remote <host1>:
  $ radare listen://:1234
- At remote <host2>:
  $ radare listen://:1234
- At localhost:
  $ radare <bin>
  ; Add hosts
  ]> =+ rap://<host1>:1234//bin/ls
  Connected to: <host1> at port 1234
  waiting... ok
  5 - rap://<host1>:1234//bin/ls
  ; Of course, you can open remote files in debug mode (or using any io
  ; plugin) specifying the uri when adding hosts: 
  ]> =+ rap://<host2>:1234/dbg:///bin/ls
  Connected to: <host2> at port 1234
  waiting... ok
  5 - rap://<host1>:1234//bin/ls
  6 - rap://<host2>:1234/dbg:///bin/ls
  ; Exec commands in host1
  ]> =5 px
  ]> = s 0x666
  ...
  ; Open a session with host2
  ]> ==6
  fd:6> !cont entrypoint
  ...
  fd:6> q
  ; Remove hosts (and close connections)
  ]> =-

Enjoy!

Regards,
Nibble
_______________________________________________
radare mailing list
[email protected]
http://lists.nopcode.org/listinfo.cgi/radare-nopcode.org

Reply via email to