0day_dev/radare2-r2pipe/clojure
2020-08-07 13:48:00 -07:00
..
src/r2pipe push 2020-08-07 13:48:00 -07:00
test/r2pipe push 2020-08-07 13:48:00 -07:00
project.clj push 2020-08-07 13:48:00 -07:00
README.md push 2020-08-07 13:48:00 -07:00

r2pipe.clj

"Know only Clojure and want to work with r2? I got you fam."

r2pipe.clj is a Clojure library to interact with radare2. This requires you to have r2 installed on your system. It spawns a new process and communicates with it over pipes.

Installation

In Leiningen:

Clojars Project

Usage

;; Start up the REPL and include r2 pipe lib
user=> (require '[r2pipe.core :refer :all])

;; Configure the r2 path. It will default to "/usr/bin/r2".
user=> (configure-path "/usr/bin/r2")

;; Open the file into r2
user=> (r2open "binary")
#'r2pipe.core/pipe

;; Execute a command in r2
user=> (r2cmd "pi 5")
"xor ebp, ebp\npop esi\nmov ecx, esp\nand esp, 0xfffffff0\npush eax\n"

Todo

A lot of things!