Software:Radare2

From HandWiki
Radare2
Radare2.svg
CutterUiScreenshot2.png
Shown is Iaito, the graphical user interface of Radare2
Original author(s)Sergi Alvarez (pancake)
Developer(s)pancake and the community
Written inC[1]
Operating systemLinux, BSD, macOS, Microsoft Windows, Haiku, Android, iOS, Solaris
Available inEnglish
TypeDisassembler
LicenseLGPL

Radare2 (also known as r2) is a complete framework for reverse-engineering and analyzing binaries; composed of a set of small utilities that can be used together or independently from the command line. Built around a disassembler for computer software which generates assembly language source code from machine-executable code, it supports a variety of executable formats for different processor architectures and operating systems.

History

Radare2 was created in February 2006,[2] aiming to provide a free and simple command-line interface for a hexadecimal editor supporting 64 bit offsets to make searches and recovering data from hard-disks, for forensic purposes. Since then, the project has grown with the aim changed to provide a complete framework for analyzing binaries while adhering to several principles of the Unix philosophy.[3]

In 2009, the decision was made to completely rewrite it, to get around limitations in the initial design. Since then, the project continued to grow,[4] and attracted several resident developers.

In 2016, the first r2con took place in Barcelona,[5][6] gathering more than 100 participants, featuring various talks about various features and improvements of the framework.

Radare2 has been the focus of multiple presentations at several high-profile security conferences, like the recon,[7] hack.lu,[8] 33c3.[2]

Features and usage

Radare2 has a steep learning curve since its main executable binaries are operated by command line and does not have a GUI by itself. Originally built around a hexadecimal editor, it has now a multitude of tools and features, and also bindings for several languages.[9] Meanwhile it has a WebUI[10] and the official graphical user interface project for Radare2 is called Iaito.[11]

Static analysis

Radare2 is able to assemble and disassemble a lot of software programs, mainly executables, but it can also perform binary diffing with graphs,[12] extract information like relocations symbols, and various other types of data. Internally, it uses a NoSQL database named sdb to keep track of analysis information that can be inferred by Radare2 or manually added by the user. Since it is able to deal with malformed binaries, it has also been used by software security researchers for analysis purposes.[13][14][15]

Dynamic analysis

Radare2 has a built-in debugger that is lower-level than GDB.[citation needed] It can also interface with GDB and WineDBG[16] to debug Windows binaries on other systems. In addition, it can also be used as a kernel debugger with VMWare.

Software exploitation

Since it features a disassembler and a low-level debugger, Radare2 can be useful to developers of exploits. The software has features which assist in exploit development, such as a ROP gadget search engine and mitigation detection. Because of the software's flexibility and support for many file formats, it is often used by capture the flag teams[17][18] and other security-oriented personnel.[19] Radare2 can also assist in creating shellcodes with its 'ragg2' tool, similar to metasploit.

Graphical user interface (GUI)

Project Iaito has been developed as the first dedicated graphical user interface (GUI) for Radare2; it's been forked by Cutter as secondly developed graphical user interface (GUI) for Radare2. When the Cutter project was separated from Radare2 project at the end of 2020,[20] Iaito was re-developed to be the current official Radare2 graphical user interface (GUI) maintained by Radare2 project members.[11]

Supported architectures/formats

References

  1. "radareorg/radare2". January 18, 2024. https://github.com/radareorg/radare2. 
  2. 2.0 2.1 "Radare demystified". CCC. 2016-12-29. https://media.ccc.de/v/33c3-8095-radare_demystified. 
  3. "I have written more than 300.000 code lines for Radare". http://www.cigtr.info/2015/07/i-have-written-more-than-300000-code.html. 
  4. CCC (29 December 2016) (in en), radare demystified, https://media.ccc.de/v/33c3-8095-radare_demystified, retrieved 2017-01-21 
  5. "r2con 2016". https://www.nccgroup.trust/uk/about-us/newsroom-and-events/events/2016/september/r2con-2016/. 
  6. Bakken, Sam (2016-08-09). "The hacker behind open-source, reverse-engineering tool Radare..." (in en-US). NowSecure. https://www.nowsecure.com/blog/2016/08/09/hacker-behind-open-source-reverse-engineering-tool-radare-previews-inaugural-r2con/. 
  7. "Recon 2015 Schedule". https://recon.cx/2015/schedule/events/49.html. 
  8. "Talks at Hack.lu 2015" (in en-US). Hack.lu 2015. http://2015.hack.lu/talks/. 
  9. "radareorg/radare2-bindings". December 12, 2023. https://github.com/radareorg/radare2-bindings. 
  10. "The new web interface". http://radare.today/posts/the-new-web-interface/. 
  11. 11.0 11.1 "iaito". https://rada.re/n/iaito.html. 
  12. ""Binary Diffing" visual en Linux con Radare2". https://chatsubo-labs.blogspot.com/2013/10/binary-diffing-visual-en-linux-con.html. 
  13. Arada, Eduardo De la (18 May 2024). "OSX/Leverage.a Analysis". https://cybersecurity.att.com/blogs/labs-research/osx-leveragea-analysis. 
  14. "None". http://www.devttys0.com/wp-content/uploads/2014/04/FindingAndReversingBackdoors.pdf. 
  15. PHDays IV, May 21, 2014, 'Anton Kochkov', Application of radare2 illustrated by Shylock/Caphaw.D and Snakso.A analysis
  16. "Gmane archive about WinDBG support in radare2". http://comments.gmane.org/gmane.comp.tools.radare/1013. 
  17. "Plaid CTF 2014 - Tiffany writeup". Dragon Sector. https://blog.dragonsector.pl/2014/04/plaid-ctf-2014-tiffany-writeup.html. 
  18. "DEFCON2K12 Prequals: pwn300 writeup". June 4, 2012. http://blog.lse.epita.fr//2012/06/04/defcon2k12-prequals-pwn300-writeup.html. 
  19. "manual binary mangling with radare". http://phrack.org/issues/66/14.html. 
  20. "Announcing Rizin". 8 December 2020. https://rizin.re/posts/announcing-rizin/. 
  21. "dyld_shared_cache - iPhone Development Wiki". https://iphonedev.wiki/Dyld_shared_cache. 
  22. ".XBE File Format". https://www.caustik.com/cxbx/download/xbe.htm. 
  23. "Fun with Constrained Programming". https://blog.cmpxchg8b.com/2012/09/fun-with-constrained-programming.html. 

Further reading

External links