R2pipe

R2pipe

The r2pipe api was initially designed for NodeJS in order to support reusing the web's r2.js API from the commandline. The r2pipe module permits interacting with r2 instances in different methods:

  • spawn pipes (r2 -0)

  • http queries (cloud friendly)

  • tcp socket (r2 -c)

         pipe spawn async http tcp rap json
nodejs    x     x     x    x    x    -   x
python    x     x     -    x    x    x   x
swift     x     x     x    x    -    -   x
dotnet    x     x     x    x    -    -   -
haskell   x     x     -    x    -    -   x
java      -     x     -    x    -    -   -
golang    x     x     -    -    -    -   x
ruby      x     x     -    -    -    -   x
rust      x     x     -    -    -    -   x
vala      -     x     x    -    -    -   -
erlang    x     x     -    -    -    -   -
newlisp   x     -     -    -    -    -   -
dlang     x     -     -    -    -    -   x
perl      x     -     -    -    -    -   -

Examples

Python

NodeJS

Use this command to install the r2pipe bindings

Here's a sample hello world

Checkout the GIT repository for more examples and details.

https://github.com/radare/radare2-r2pipe/blob/master/nodejs/r2pipe/README.md

Go

https://github.com/radare/r2pipe-go

Rust

Ruby

Perl

Erlang

Haskell

Dotnet

Java

Swift

Vala

NewLisp

Dlang

最后更新于

这有帮助吗?