-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.sh
62 lines (46 loc) · 1.82 KB
/
setup.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
60
61
62
#!/bin/bash
#Check if root
if [ "$EUID" -ne 0 ]
then echo "Please run as root"
exit
fi
echo "Disable auto upgrades..."
cat << EOF > /etc/apt/apt.conf.d/20auto-upgrades
APT::Periodic::Update-Package-Lists "0";
APT::Periodic::Unattended-Upgrade "0";
EOF
echo "Installing prerequisite packages..."
apt install libpcap-dev libusb-1.0-0-dev libnetfilter-queue-dev libbluetooth-dev libncurses5-dev python-pip libglib2.0-dev git bluez
echo "Installing Bettercap..."
wget -P /tmp https://github.com/bettercap/bettercap/releases/download/v2.31.1/bettercap_linux_amd64_v2.31.1.zip
unzip /tmp/bettercap_linux_amd64_v2.31.1.zip -d /tmp
mv /tmp/bettercap /usr/local/bin/
echo "Installing Spooftooph..."
rm -rf spooftooph
git clone https://gitlab.com/kalilinux/packages/spooftooph.git
cat << 'EOF' > spooftooph/makefile
CC = gcc
BT_LIB = -lbluetooth
NCURSES_LIB = -lncurses
PTHREAD = -pthread
BIN = /usr/bin
all: spooftooph
spooftooph:
$(CC) dev_class.c namelist.c spooftooph.c bdaddr.c oui.c $(BT_LIB) $(NCURSES_LIB) $(PTHREAD) -o spooftooph
install:
cp spooftooph $(BIN)
uninstall:
rm -i $(BIN)/spooftooph
clean:
rm spooftooph
EOF
cd spooftooph && make && make install && make clean && cd ..
echo "Installing Insignia bluetooth drivers..."
wget https://github.com/winterheart/broadcom-bt-firmware/releases/download/v12.0.1.1105_p3/broadcom-bt-firmware-10.1.0.1115.deb
dpkg -i broadcom-bt-firmware-10.1.0.1115.deb
echo "Installing bleah..."
pip install -U pip setuptools
git clone https://github.com/IanHarvey/bluepy.git && cd bluepy && python setup.py build && sudo python setup.py install && cd ..
git clone https://github.com/evilsocket/bleah.git && cd bleah && git checkout 6a2fd3a && python2 setup.py build && python2 setup.py install
# Still have change 'queue' to 'Queue'
echo "Done."