You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
pwndbg/tests/qemu-tests/download_images.sh

28 lines
648 B
Bash

#!/bin/bash
set -o errexit
OUT_DIR=images
URL="https://github.com/gsingh93/linux-exploit-dev-env/releases/latest/download"
mkdir -p "${OUT_DIR}"
for arch in x86_64 arm64; do
file="rootfs-${arch}.img"
wget "${URL}/${file}" -O "${OUT_DIR}/${file}"
file="vmlinux-linux-${arch}"
wget "${URL}/${file}" -O "${OUT_DIR}/${file}"
file="vmlinux-ack-${arch}"
wget "${URL}/${file}" -O "${OUT_DIR}/${file}"
done
for kernel_type in ack linux; do
file="bzImage-${kernel_type}-x86_64"
wget "${URL}/${file}" -O "${OUT_DIR}/${file}"
file="Image-${kernel_type}-arm64"
wget "${URL}/${file}" -O "${OUT_DIR}/${file}"
done