Exploit database

GH-14fb583d3d1bd2da10251bb1a37b93d6

gitchw/ghostlock-cve-2026-43499

GitHubNot listedPoC
Download repository ZIP

Sources for CVE-2026-43499

164 sources

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

Repository files99
gitchw/ghostlock-cve-2026-43499Revision 96acd93156f6
Next files →

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

workspace/offload/_gl_up.sh

Shell · 2,031 bytes
#!/bin/bash
# Bring up MY isolated QEMU instance. Never touch PID 4003 (5576/5577/1254).
set -e
WORK=/mnt/d/project/ow/qemu
EXP=/mnt/d/project/ow/ghostlock-cve-2026-43499/exploit
cd "$WORK"

# 1) Kill ONLY my old instance via my pidfile
if [ -f /tmp/qemu_gl.pid ]; then
  P=$(cat /tmp/qemu_gl.pid 2>/dev/null || echo "")
  if [ -n "$P" ] && ps -p "$P" >/dev/null 2>&1; then
    echo "killing my old qemu pid=$P"
    kill "$P" 2>/dev/null || true; sleep 2
  fi
fi
rm -f /tmp/qemu_gl.pid

# 2) Build independent initrd in /tmp/glimg (proven alpine + minimal init)
rm -rf /tmp/glimg && mkdir -p /tmp/glimg/root/exp
cd /tmp/glimg
zcat "$WORK/alpine-armv7.tgz" | tar xf -
cp "$WORK/go27" "$EXP/go27" "$WORK/perf_leak" "$EXP/perf_leak" root/exp/ 2>/dev/null || true
cp "$WORK/watch_uname" "$EXP/watch_uname" root/exp/ 2>/dev/null || true
chmod +x root/exp/* 2>/dev/null || true
cat > ./init <<'EOF'
#!/bin/busybox sh
/bin/busybox mount -t proc proc /proc
/bin/busybox mount -t sysfs sysfs /sys
/bin/busybox mount -t devtmpfs devtmpfs /dev
/bin/busybox mount -t tmpfs tmpfs /tmp
/bin/busybox mount -t securityfs securityfs /sys/kernel/security 2>/dev/null
/bin/busybox echo "=== GL isolated harness (ports 5580/5581/5582) ==="
/bin/busybox echo "GLBOOT_OK $(uname -r)"
exec /bin/busybox setsid -c /bin/sh
EOF
chmod +x ./init
find . | cpio -H newc -o 2>/dev/null | gzip -9 > /tmp/glimg.cpio.gz
ls -la /tmp/glimg.cpio.gz

# 3) Launch my isolated QEMU (serial 5580, monitor 5581, gdb 5582)
cd "$WORK"
qemu-system-arm -M virt,secure=off -smp 4 -m 1024 \
  -kernel zImage.clang -initrd /tmp/glimg.cpio.gz \
  -append "console=ttyAMA0 earlycon panic=0 selinux=0 loglevel=4" \
  -chardev socket,id=s0,host=127.0.0.1,port=5580,server=on,wait=off,logfile=/tmp/serial_gl.log \
  -serial chardev:s0 \
  -monitor telnet:127.0.0.1:5581,server,nowait \
  -gdb tcp::5582 \
  -daemonize -pidfile /tmp/qemu_gl.pid
sleep 3
echo "=== my qemu pid ==="; cat /tmp/qemu_gl.pid 2>/dev/null
echo "=== ports ==="; ss -ltn 2>/dev/null | grep -E ':(5580|5581|5582)'