Liking cljdoc? Tell your friends :D

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!

Contributions

This is still a work in progress. If you have anything to add please raise a pull request!

This project is licensed under the MIT license.

Can you improve this documentation?Edit on GitHub

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close