-
Notifications
You must be signed in to change notification settings - Fork 44
/
Copy pathsetup.sh
executable file
·39 lines (33 loc) · 1012 Bytes
/
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
#!/bin/bash
apt install git vim isc-dhcp-server exfat-fuse exfat-utils npm -y
npm install .
dd if=/dev/zero of=/scripts/system.img bs=1M count=512
mkdosfs /scripts/system.img
mkdir /test
mount -o loop /scripts/system.img /test
cd /usr/src
git clone https://github.com/hak5/bashbunny-payloads.git
rsync -a /usr/src/bashbunny-payloads/payloads/ /test/
sync
umount /test
cd /usr/src
git clone git://github.com/quick2wire/quick2wire-gpio-admin.git
cd quick2wire-gpio-admin
make
sudo make install
rsync -av /scripts/etc/ /etc/
rsync -av /scripts/boot/ /boot/
systemctl enable pibunny
cd /usr/src
git clone https://github.com/theresalu/rspiducky.git
cd rspiducky
gcc usleep.c -o /home/pi/usleep
gcc hid-gadget-test.c -o /home/pi/hid-gadget-test
chmod +x /usr/src/rspiducky/duckpy.sh
#For my led script
sudo wget -O /usr/local/sbin/neouart https://github.com/bigjosh/NeoUart/releases/download/2/neouart
chmod +x /usr/local/sbin/neouart
for BINFILE in `ls /scripts/bin/`
do
ln -sf /scripts/bin/$BINFILE /bin
done