Skip to content

guedou/jupyter-radare2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

jupyter-radare2

GitHub tag Twitter Follow

This is a simple radare2 Jupyter kernel, that can be used to make interactive radare2 tutorials, or take advanced notes.

Demos

The kernel can be used either from a notebook or a console:

notebook

jupyter console --kernel radare2
Jupyter console 5.2.0

radare2 Jupyter kernel


In [1]: o /bin/ls
9
In [2]: afl

In [3]: afl~main

In [4]: pd 5
;-- entry0:
            0x00005430      31ed           xor ebp, ebp
            0x00005432      4989d1         mov r9, rdx
            0x00005435      5e             pop rsi
            0x00005436      4889e2         mov rdx, rsp
            0x00005439      4883e4f0       and rsp, 0xfffffffffffffff0
In [5]:                                                                                                                                               
Do you really want to exit ([y]/n)? y
Shutting down kernel

Installing the kernel

Check that radare2 is present in your $PATH, then type:

virtualenv ve_r2_kernel
source ve_r2_kernel/bin/activate
pip install jupyter r2pipe
python setup.py install

De-installing the kernel

Simply type:

deactivate
rm -rf ve_r2_kernel
rm -rf $HOME/.local/share/jupyter/kernels/radare2