-
Notifications
You must be signed in to change notification settings - Fork 1
/
setup.sh
executable file
·40 lines (39 loc) · 1.59 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
#!/bin/bash
apt-get install --yes --force-yes debootstrap syslinux isolinux squashfs-tools genisoimage
mkdir -p chroot
debootstrap --arch=amd64 --variant=minbase stable chroot http://ftp.us.debian.org/debian/
chroot chroot /spectre/install.sh
mkdir -p image/
mkdir -p image/{isolinux,live}
cp chroot/boot/isolinux.cfg image/isolinux/isolinux.cfg
( cp chroot/boot/vmlinuz* image/live/vmlinuz && \
cp chroot/boot/initrd* image/live/initrd
)
git clone https://github.com/Neohapsis/creddump7.git chroot/spectre/creddump7
git clone https://github.com/SpiderLabs/Responder.git chroot/spectre/Responder
(cd image/ && \
cp /usr/lib/ISOLINUX/isolinux.bin isolinux/ && \
cp /usr/lib/syslinux/modules/bios/menu.c32 isolinux/ && \
cp /usr/lib/syslinux/modules/bios/hdt.c32 isolinux/ && \
cp /usr/lib/syslinux/modules/bios/ldlinux.c32 isolinux/ && \
cp /usr/lib/syslinux/modules/bios/libutil.c32 isolinux/ && \
cp /usr/lib/syslinux/modules/bios/libmenu.c32 isolinux/ && \
cp /usr/lib/syslinux/modules/bios/libcom32.c32 isolinux/ && \
cp /usr/lib/syslinux/modules/bios/libgpl.c32 isolinux/ && \
cp /usr/share/misc/pci.ids isolinux/ \
)
rm -f image/live/filesystem.squashfs scarlet-spectre.iso
mksquashfs chroot image/live/filesystem.squashfs -e boot
genisoimage -rational-rock \
-volid "Scarlet Spectre"\
-cache-inodes\
-joliet\
-hfs\
-full-iso9660-filenames\
-b isolinux/isolinux.bin\
-c isolinux/boot.cat\
-no-emul-boot\
-boot-load-size 4\
-boot-info-table\
-output scarlet-spectre.iso\
image;