rename project to runaway

This commit is contained in:
2026-11-09 10:13:51 +08:00
parent 5857081832
commit c9feb8c05a
95 changed files with 1034 additions and 1034 deletions
+16 -16
View File
@@ -3,7 +3,7 @@ generate_report() {
generate_report_json
return
fi
header "Unleash System Report"
header "Runaway System Report"
local ts
ts=$(date '+%Y-%m-%d %H:%M:%S')
@@ -46,29 +46,29 @@ generate_report() {
if command -v pfctl &>/dev/null; then
pfctl -si 2>/dev/null | grep -E "Status|Enabled" || echo " pf not enabled"
echo ""
pfctl -a "com.unleash/mdm" -s rules 2>/dev/null \
&& echo " Unleash MDM anchor: active" \
|| echo " Unleash MDM anchor: not loaded"
pfctl -a "com.unleash.selective" -s rules 2>/dev/null \
&& echo " Unleash selective anchor: active" \
|| echo " Unleash selective anchor: not loaded"
pfctl -a "com.runaway/mdm" -s rules 2>/dev/null \
&& echo " Runaway MDM anchor: active" \
|| echo " Runaway MDM anchor: not loaded"
pfctl -a "com.runaway.selective" -s rules 2>/dev/null \
&& echo " Runaway selective anchor: active" \
|| echo " Runaway selective anchor: not loaded"
fi
echo ""
step "Persistence"
[ -f "/Library/LaunchDaemons/com.unleash.heal.plist" ] \
[ -f "/Library/LaunchDaemons/com.runaway.heal.plist" ] \
&& echo " heal LaunchDaemon: installed" \
|| echo " heal LaunchDaemon: not installed"
[ -f "/Library/LaunchDaemons/com.unleash.monitor.plist" ] \
[ -f "/Library/LaunchDaemons/com.runaway.monitor.plist" ] \
&& echo " monitor LaunchDaemon: installed" \
|| echo " monitor LaunchDaemon: not installed"
[ -f "/tmp/unleash-monitor.pid" ] \
[ -f "/tmp/runaway-monitor.pid" ] \
&& echo " monitor process: running" \
|| echo " monitor process: not running"
echo ""
step "Recent Events"
for logfile in /var/log/unleash-monitor.log /var/log/unleash-heal.log; do
for logfile in /var/log/runaway-monitor.log /var/log/runaway-heal.log; do
if [ -f "$logfile" ] && [ -s "$logfile" ]; then
echo " From $(basename "$logfile"):"
tail -3 "$logfile" | sed 's/^/ /'
@@ -125,11 +125,11 @@ generate_report_json() {
report="${report} \"installed_profiles\": $profile_count,\n"
local heal_installed="false"
[ -f "/Library/LaunchDaemons/com.unleash.heal.plist" ] && heal_installed="true"
[ -f "/Library/LaunchDaemons/com.runaway.heal.plist" ] && heal_installed="true"
local monitor_installed="false"
[ -f "/Library/LaunchDaemons/com.unleash.monitor.plist" ] && monitor_installed="true"
[ -f "/Library/LaunchDaemons/com.runaway.monitor.plist" ] && monitor_installed="true"
local monitor_running="false"
[ -f "/tmp/unleash-monitor.pid" ] && monitor_running="true"
[ -f "/tmp/runaway-monitor.pid" ] && monitor_running="true"
report="${report} \"persistence\": {\n"
report="${report} \"heal_launchdaemon\": $heal_installed,\n"
report="${report} \"monitor_launchdaemon\": $monitor_installed,\n"
@@ -137,11 +137,11 @@ generate_report_json() {
report="${report} },\n"
local fw_active="false"
if command -v pfctl &>/dev/null && pfctl -a "com.unleash/mdm" -s rules 2>/dev/null | grep -q "block"; then
if command -v pfctl &>/dev/null && pfctl -a "com.runaway/mdm" -s rules 2>/dev/null | grep -q "block"; then
fw_active="true"
fi
local selective_active="false"
if command -v pfctl &>/dev/null && pfctl -a "com.unleash.selective" -s rules 2>/dev/null | grep -q "block"; then
if command -v pfctl &>/dev/null && pfctl -a "com.runaway.selective" -s rules 2>/dev/null | grep -q "block"; then
selective_active="true"
fi
report="${report} \"firewall\": {\n"