-
Notifications
You must be signed in to change notification settings - Fork 9
/
linux.sh
47 lines (34 loc) · 1.18 KB
/
linux.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
#!/usr/bin/env bash
#
# linux.sh
#
# litefuzz project
#
# setup and install deps on Ubuntu Linux (22.04 tested + Py3)
#
# note: run as user with sudo privileges and in the litefuzz root directory
#
echo -e "\ninstalling litefuzz deps and setup on Ubuntu Linux..."
echo -e '\n> installing apt packages, enter the password for sudo if prompted\n'
sudo apt update
sudo apt install -y build-essential gnome-devel gcc gdb libgtk-3-dev python3 python3-dev python3-pip python3-tk python-tk electric-fence
echo -e '\n> grabbing !exploitable for gdb\n'
git clone https://github.com/jfoote/exploitable
pushd exploitable
sudo python3 setup.py install
popd
#
# make exploitable autoload in gdb
#
EXPLOITABLE_PY=$(sudo find /usr/local/lib -name exploitable.py)
echo "source $EXPLOITABLE_PY" >> ~/.gdbinit
echo -e '\n> installing python packages and setting py3 as the default python\n'
pip3 install -r requirements/requirements-py3.txt
pip3 install pyradamsa # didn't include in requirements as its a Linux only package
sudo update-alternatives --install /usr/bin/python python /usr/bin/python3 1
echo -e '\n> making test crash apps\n'
pushd test/linux
make
popd
chmod +x litefuzz.py
echo -e '\nfinished!\n'