Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/securisec/r2retdec
Use a local instance of retdec to decompile functions in radare2
https://github.com/securisec/r2retdec
Last synced: 2 months ago
JSON representation
Use a local instance of retdec to decompile functions in radare2
- Host: GitHub
- URL: https://github.com/securisec/r2retdec
- Owner: securisec
- License: mit
- Archived: true
- Created: 2018-03-08T15:36:45.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2021-12-03T22:59:05.000Z (about 3 years ago)
- Last Synced: 2024-08-02T01:27:28.730Z (6 months ago)
- Language: JavaScript
- Homepage:
- Size: 16.6 KB
- Stars: 20
- Watchers: 3
- Forks: 2
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# DEPRECATED
# r2retdec
[![codebeat badge](https://codebeat.co/badges/c18f32ef-bf28-4948-8156-9a52e50e121c)](https://codebeat.co/projects/github-com-securisec-r2retdec-master)
[![Twitter Follow](https://img.shields.io/twitter/follow/securisec.svg?style=social&label=Follow)]()
[![Analytics](https://ga-beacon.appspot.com/UA-113966566-4/r2wiki/readme)](https://github.com/securisec/r2wiki)
![repo size](https://img.shields.io/github/repo-size/securisec/r2retdec.svg)r2retdec is a bridge in between radare2 and retdec and decompiles individual functions. It also provides summary of strings, xrefs and calls for a function. The various windows are mouse scrollable and draggable.
[![asciicast](https://asciinema.org/a/170931.png)](https://asciinema.org/a/170931)
## Installation
Install from r2pm.
```
r2pm init
r2pm update
r2pm -i r2retdec
```
- Create a file in $HOME call .r2retdec and put the full path to retdec-decompiler.sh in it.
- A basic installation script is included in this repo. retdec_install.sh## Uninstallation
```
r2pm -u r2retdec
```## Usage
```
usage: $dec [-h] [-p] [-t FILE]r2retdec help
Optional arguments:
-h, --help Show this help message and exit.
-t TMP Set temp file for decompiled code
-p Print dicompilation to stdout
--python Print decompilation in python syntax. Default is CInvoke from inside r2 shell with $dec
```- Press `h` in visual mode for visual mode help
## Dependencies
Needs a locally compiled retdec available from https://github.com/avast-tl/retdec## Tested with
- Node version 8 and 9
- Ubuntu 16.04 Vagrant
- Mac OSX 10.12## Supported architectures
(32b only): Intel x86, ARM, MIPS, PIC32, and PowerPC.