Skip to content

Commit e15a1f2

Browse files
authored
Update 16_Crontab_UI_misconfig.sh
1 parent ee83c23 commit e15a1f2

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

linPEAS/builder/linpeas_parts/4_procs_crons_timers_srvcs_sockets/16_Crontab_UI_misconfig.sh

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -19,17 +19,6 @@ if ! [ "$SEARCH_IN_FOLDER" ]; then
1919
print_2title "Crontab UI (root) misconfiguration checks"
2020
print_info "https://book.hacktricks.wiki/en/linux-hardening/privilege-escalation/index.html#scheduledcron-jobs"
2121

22-
# Helper: mask secret values (keep first/last 2 chars when length >4)
23-
mask_secret() {
24-
local s="$1"
25-
local l=${#s}
26-
if [ $l -le 4 ]; then
27-
printf "%s" "$s"
28-
else
29-
printf "%s...%s" "${s:0:2}" "${s: -2}"
30-
fi
31-
}
32-
3322
# Collect candidate services referencing crontab-ui
3423
candidates=""
3524
if command -v systemctl >/dev/null 2>&1; then

0 commit comments

Comments
 (0)