How to Use r2pipe with Python - Radare2 Tutorial

Subscribers:
178,000
Published on ● Video Link: https://www.youtube.com/watch?v=LokfW1z2T_o



Duration: 5:11
5,574 views
135


Radare2 is a huge framework for reverse engineering and analysis. The framework revolves around the Radare2 disassembler which supports a large number of platforms, architectures & formats. Radare started as a forensic tool with scriptable command line hex editor but has grown to be much much more with Radare2 which can be used to both disassemble and debug programs and much much more.

This r2pipe tutorial was made by Pawel Lukasik, please follow him and visit his site:
https://www.youtube.com/c/PawelLukasik/
https://twitter.com/pawel_lukasik
https://allthingsreversed.io/

r2pipe exposes some APIs you can use with to interact with Radare2, whether via the command line or via scripting with multiple language interfaces including C, C++, C#, PYthon & many others. The r2pipe APIs work through the r_core_cmd_str() function which parses the command, passes it to radare2 and returns a string.

This Radare2 tutorial will show you the basics of using r2pipe using Python. Easily enough, we start off just by importing r2pipe in a python script and using the r2pipe.open() function, which opens the binary of your choosing. We pass simple radare2 commands via r2pipe.cmd("whatever"), some simple commands we show are "aaa" "afl" & "pdf @ main". You can learn more about these functions by reading the radare2 documentation.

r2pipe is a very powerful way to script interaction with R2 and this Radare2 tutorial is your gateway into learning this process. It has unlimited potential because it can do anything that radare2 can do. If you have not tried it, give it a try, especially if you are a linux user.

Discussion : https://guidedhacking.com/threads/how-to-use-r2pipe-radare2-tutorial.16612/

-=GH=-
Donate on our Forum : http://bit.ly/2HkOco9
Support us on Patreon : http://bit.ly/38mnveC

Follow us on Facebook : http://bit.ly/2vvHfhk
Follow us on Twitter : http://bit.ly/3bC7J1i
Follow us on Twitch : http://bit.ly/39ywOZ2
Follow us on Reddit : http://bit.ly/3bvOB57
Follow us on GitHub : http://bit.ly/2HoNXIS
Follow us on Instagram : http://bit.ly/2SoDOlu
#Radare2 #Radare #ReverseEngineering







Tags:
guidedhacking
r2pipe
r2 pipe
radare2
radare2 tutorial
r2pipe tutorial
Pawel lukasik
r2 pipe tutorial
radare2 python
r2pipe python
reverse engineering
radare2 decompiler
radare2 reverse engineering
radare2 cutter
radare2 tutorial 1
radare2 debugging tutorial