Update 16_Crontab_UI_misconfig.sh

This commit is contained in:
SirBroccoli
2025-10-04 10:38:02 +02:00
committed by GitHub
parent ee83c23a74
commit e15a1f2e12

View File

@@ -19,17 +19,6 @@ if ! [ "$SEARCH_IN_FOLDER" ]; then
print_2title "Crontab UI (root) misconfiguration checks" print_2title "Crontab UI (root) misconfiguration checks"
print_info "https://book.hacktricks.wiki/en/linux-hardening/privilege-escalation/index.html#scheduledcron-jobs" print_info "https://book.hacktricks.wiki/en/linux-hardening/privilege-escalation/index.html#scheduledcron-jobs"
# Helper: mask secret values (keep first/last 2 chars when length >4)
mask_secret() {
local s="$1"
local l=${#s}
if [ $l -le 4 ]; then
printf "%s" "$s"
else
printf "%s...%s" "${s:0:2}" "${s: -2}"
fi
}
# Collect candidate services referencing crontab-ui # Collect candidate services referencing crontab-ui
candidates="" candidates=""
if command -v systemctl >/dev/null 2>&1; then if command -v systemctl >/dev/null 2>&1; then