0day_dev/radare2-r2pipe/erlang
2020-08-07 13:48:00 -07:00
..
src push 2020-08-07 13:48:00 -07:00
LICENSE push 2020-08-07 13:48:00 -07:00
Makefile push 2020-08-07 13:48:00 -07:00
ORIGIN push 2020-08-07 13:48:00 -07:00
README.md push 2020-08-07 13:48:00 -07:00
rebar.config push 2020-08-07 13:48:00 -07:00
testr2pipe.erl push 2020-08-07 13:48:00 -07:00

r2pipe for erlang

Works with r2 over the ports interface or by calling escript direclty from r2.

Build:

$ rebar get-deps
$ rebar co

Example pipe usage:

$ rebar sh
erl> H = r2pipe:init(pipe, "/bin/ls").
erl> io:format("~s", [r2pipe:cmd(H, "i")]).
erl> r2pipe:cmdj(H, "ij").

See testr2pipe.erl as local pipe call example escript. Call it from r2 by using:

r2> #!pipe escript testr2pipe.erl

Or

$ chmod +x testr2pipe.erl

And then from r2:

r2> #!pipe testr2pipe.erl