-
Notifications
You must be signed in to change notification settings - Fork 6
/
install.sh
executable file
·59 lines (52 loc) · 1.61 KB
/
install.sh
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
# Install base dependencies from apt
sudo apt update
sudo apt install git lldb gcc
# Install python dependencies for plugins
sudo apt install python-pyqt5 python-pip python-dev python-apt
sudo -H pip install --upgrade pip
sudo -H pip install -r requirements.txt
# Clone plugin dependencies
cd ~/.binaryninja/plugins
git clone https://github.com/ehennenfent/binja_toolbar.git
git clone https://github.com/ehennenfent/binja_spawn_terminal.git
git clone https://github.com/snare/binjatron.git
cd $PWD/memory_viewer
git clone https://github.com/ehennenfent/hexview.git
# Install dependencies for gdb and m4
sudo apt install binutils binutils-dev binutils-source
sudo apt install help2man autoconf automake texinfo bison flex
# Terminal UI dependencies for GDB
sudo apt install libncurses5 libncurses5-dev libncursesw5 libncursesw5-dev
# Install m4 from source (3 years ahead of version in apt)
cd ~/Downloads
git clone git://git.sv.gnu.org/m4
cd m4
git checkout -b branch-1.4 origin/branch-1.4
./bootstrap
./configure
make
sudo make install
cd ~/Downloads
# Remove existing version of gdb if present
sudo apt remove gdb
git clone git://sourceware.org/git/binutils-gdb.git
cd binutils-gdb
./configure --enable-tui --with-python
make
# Precompile binutils from git (assuming that step already failed)
cd binutils
./configure
make
sudo make install
cd ..
./configure --enable-tui --with-python
make
sudo make install
# Add dependencies for 32 bit binaries
sudo dpkg --add-architecture i386
sudo apt update
sudo apt install libc6:i386 libncurses5:i386 libstdc++6:i386
cd ~/Downloads
git clone https://github.com/snare/voltron
cd voltron
./install.sh