Rename Linux related artifact download scripts

This commit is contained in:
Marc André Tanner
2025-02-23 20:10:47 +01:00
parent 57611da4ca
commit 7b5545c64e
4 changed files with 24 additions and 19 deletions
@@ -25,4 +25,4 @@ wget "https://snapshot.debian.org/archive/debian/20240716T023930Z/pool/main/g/gr
dpkg-deb -x grub.deb grub
cp grub/usr/lib/grub/x86_64-efi-signed/grubnetx64.efi.signed /mnt/tftp/grubx64.efi
# TODO: Fetching vulnerable Windows boot loader
# TODO: Fetching vulnerable Windows boot manager
+6 -2
View File
@@ -1,4 +1,8 @@
#!/bin/sh
docker run --platform linux/amd64 --rm -v "$PWD":/mnt -w /root \
alpine:3.20.3 "/mnt/download-docker.sh"
if [ -f tftp/grubx64.efi ] && [ -f tftp/shimx64.efi ]; then
echo "Skipping Linux related artifacts download"
else
docker run --platform linux/amd64 --rm -v "$PWD":/mnt -w /root \
alpine:3.20.3 "/mnt/download-linux.sh"
fi
+16
View File
@@ -0,0 +1,16 @@
#!/bin/sh
[ $# -eq 0 ] && echo "usage: $0 <interface>" && exit 1
scriptpath="$( cd -- "$(dirname "$0")" >/dev/null 2>&1 ; pwd -P )"
interface=$1
sudo ip a add 10.13.37.100/24 dev $interface
sudo dnsmasq --no-daemon \
--interface=$interface \
--dhcp-range=10.13.37.100,10.13.37.200,255.255.255.0,1h \
--dhcp-boot=bootmgfw.efi \
--enable-tftp \
--tftp-root="$scriptpath/tftp" \
--log-dhcp
-16
View File
@@ -1,16 +0,0 @@
#!/bin/sh
[ $# -eq 0 ] && echo "usage: $0 <interface>" && exit 1
scriptpath="$( cd -- "$(dirname "$0")" >/dev/null 2>&1 ; pwd -P )"
interface=$1
sudo ip a add 10.13.37.100/24 dev $interface
sudo dnsmasq --no-daemon \
--interface=$interface \
--dhcp-range=10.13.37.100,10.13.37.200,255.255.255.0,1h \
--dhcp-boot=bootmgfw.efi \
--enable-tftp \
--tftp-root="$scriptpath/tftp" \
--log-dhcp
+1
View File
@@ -0,0 +1 @@
start-pxe-linux.sh