R2pipe

R2pipe

r2pipe api最早是为NodeJS设计的,方便在命令行里重用r2.js的web API。r2pipe这个模块提供了与r2进行交互的不同方法:

  • 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     -     -    -    -    -   -

例子

Python

NodeJS

先使用该命令安装r2pipe依赖

下面是一个hello world例子

查阅GIT仓库了解更多的例子和信息

https://github.com/radareorg/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

最后更新于

这有帮助吗?