Exploit database

GH-6608b06d657e58b3f3f1c07622e73056

kuzeyardabulut/cve-2024-0582

GitHubNot listedPoC
Download repository ZIP

Sources for CVE-2024-0582

8 sources

Preferred order: Exploit-DB, Metasploit, then GitHub repositories by stars. Open preferred source

Repository files7
kuzeyardabulut/cve-2024-0582Revision 5ae0305e8603

Files from this repository share one source choice. Supporting files may cover other vulnerabilities.

run_qemu.sh

Shell · 1,256 bytes
#!/bin/bash

# ------------------------------------------------------------------------------
# QEMU Virtual Machine Boot Script for Custom Linux Kernel Testing
# ------------------------------------------------------------------------------
# This script launches a QEMU VM with a custom kernel and Debian Bullseye image.
# It sets up kernel debugging options and port forwarding for SSH access.
#
# Based on: https://github.com/google/syzkaller/blob/master/docs/linux/setup_ubuntu-host_qemu-vm_x86-64-kernel.md
# ------------------------------------------------------------------------------

# Define paths based on home directory
KERNELDIR="$HOME/Desktop/git_kernel"
IMGDIR="$HOME/Desktop/image"

# Launch the QEMU virtual machine
qemu-system-x86_64 \
    -m 4G \
    -smp 2 \
    -kernel "${KERNELDIR}/arch/x86/boot/bzImage" \
    -append "console=ttyS0 root=/dev/vda earlyprintk=serial net.ifnames=0 rw loglevel=3 oops=panic panic_on_warn=1 panic=-1 pti=on page_alloc.shuffle=1" \
    -drive file="${IMGDIR}/bullseye.img",format=raw,index=1,if=virtio \
    -net user,host=10.0.2.10,hostfwd=tcp:127.0.0.1:10021-:22 \
    -net nic,model=e1000 \
    -enable-kvm \
    -cpu host,-smap,-smep \
    -nographic \
    -pidfile vm.pid \
    2>&1 | tee vm.log