Exploit database

GH-c0a4aef21b7b4f9c58f7a4c71fc3c62f

khoatran107/cve-2024-58239

GitHubNot listedPoC
Download repository ZIP

Sources for CVE-2024-58239

2 sources

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

Repository files14
khoatran107/cve-2024-58239Revision f56b8b332699

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

local_runner.sh

Shell · 588 bytes
#!/bin/bash
set -e

usage() {
    echo "Usage: $0 <release-name> [--root] [--gdb]";
    exit 1;
}

INIT_FN="/home/user/run.sh"
RUN_GDB=false

ARGS=()
while [[ $# -gt 0 ]]; do
  case $1 in
    --root) INIT_FN="/bin/bash"; shift;;
    --gdb) RUN_GDB=true; shift;;
    -*|--*) echo "Unknown option $1"; exit 1;;
    *) ARGS+=("$1"); shift;;
  esac
done
set -- "${ARGS[@]}"

RELEASE_NAME="$1"
if [ -z "$RELEASE_NAME" ]; then usage; fi

if [ "$RUN_GDB" = true ] && [ -n "$TMUX" ]; then
    tmux split-window -h "gdb -x ./script.gdb"
fi

exec ./qemu.sh "releases/$RELEASE_NAME" flag "$INIT_FN"