Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save decidedlygray/ed14b8073ed0c2cc43e0cc0d7d914c2f to your computer and use it in GitHub Desktop.
Save decidedlygray/ed14b8073ed0c2cc43e0cc0d7d914c2f to your computer and use it in GitHub Desktop.
Build and install script retdec (retargetable decompiler) on Kali Linux
#
# Project Homepage: https://github.com/avast-tl/retdec#linux
# This file is based on the Dockerfile from the repo above
#
apt update -y
apt install -y build-essential cmake git perl python3 doxygen graphviz upx flex bison zlib1g-dev libtinfo-dev autoconf automake pkg-config m4 libtool
cd /opt
git clone https://github.com/avast-tl/retdec
cd retdec && mkdir build && cd build
cmake .. -DCMAKE_INSTALL_PREFIX=/home/retdec/retdec-install
make -j$(nproc)
make install
echo "Just make sure 'python' is symlinked to 'python3', then you can run retdec using:"
echo "cd /home/retdec/retdec-install/bin"
echo "./retdec-decompiler.py -a arm /path/to/myfile"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment