Skip to content

chinmaydd/r2pipe.clj

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Clojure library to interact with radare2 via pipes.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published