-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.sh
More file actions
executable file
·45 lines (32 loc) · 834 Bytes
/
setup.sh
File metadata and controls
executable file
·45 lines (32 loc) · 834 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
#!/bin/bash
# Copyright 2024 Igor Wodiany
# Licensed under the Apache License, Version 2.0 (the "License")
sudo apt update && sudo apt upgrade
sudo apt install build-essential libelf-dev ruby cmake pkg-config python3-dev libcapstone-dev python3-pip texinfo
# Build Unicorn
cd unicorn; mkdir build; cd build
cmake .. -DCMAKE_BUILD_TYPE=Release
make -j
cd ../../
# Build MAMBO Trace
cp -r mambo-trace/plugins/trace/ mambo/plugins/
cp mambo-trace/mambo.patch mambo/
cd mambo/
git apply mambo.patch
make
cd ../
# Build MAMBO Lift
cd mambo-lift/
git submodule update --init --recursive
make
cd ../
# Install ropper
pip3 install ropper
# Install binutils 2.38
wget https://sourceware.org/pub/binutils/releases/binutils-2.38.tar.gz
tar xf binutils-2.38.tar.gz
rm binutils-2.38.tar.gz
cd binutils-2.38/
./configure
make -j
cd ..