From fb9509e2b0dcd04d7d1dc49c4340aea417e0ad1c Mon Sep 17 00:00:00 2001 From: Carlos Polop Date: Thu, 23 Apr 2020 18:49:50 +0100 Subject: [PATCH] Update linpeas.sh --- linPEAS/linpeas.sh | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/linPEAS/linpeas.sh b/linPEAS/linpeas.sh index c4839b0..128f617 100755 --- a/linPEAS/linpeas.sh +++ b/linPEAS/linpeas.sh @@ -728,10 +728,10 @@ fi if [ "`echo $CHECKS | grep ProCronSrvcs`" ]; then - ########################################### - #-----) Processes & Cron & Services (-----# - ########################################### - printf $B"================================( "$GREEN"Processes, Cron & Services"$B" )================================\n"$NC + #################################################### + #-----) Processes & Cron & Services & Timers (-----# + #################################################### + printf $B"================================( "$GREEN"Processes, Cron, Services & Timers"$B" )================================\n"$NC #-- 1PCS) Cleaned proccesses printf $Y"[+] "$GREEN"Cleaned processes\n"$NC @@ -775,6 +775,11 @@ if [ "`echo $CHECKS | grep ProCronSrvcs`" ]; then printf $B"[i] "$Y"Search for outdated versions\n"$NC (service --status-all || chkconfig --list || rc-status) 2>/dev/null || echo_not_found "service|chkconfig|rc-status" echo "" + + #-- 6PSC) System timers + printf $Y"[+] "$GREEN"System timers\n"$NC + (systemctl list-timers --all 2>/dev/null | grep -Ev "(^$|timers listed)") || echo_not_found + echo "" echo "" fi @@ -928,11 +933,6 @@ if [ "`echo $CHECKS | grep UsrI`" ]; then printf $Y"[+] "$GREEN"Password policy\n"$NC grep "^PASS_MAX_DAYS\|^PASS_MIN_DAYS\|^PASS_WARN_AGE\|^ENCRYPT_METHOD" /etc/login.defs 2>/dev/null || echo_not_found "/etc/login.defs" echo "" - - #-- 15UI) User timer - printf $Y"[+] "$GREEN"User timers\n"$NC - (systemctl --user list-timers --all 2>/dev/null | grep -Ev "(^$|timers listed)") || echo_not_found - echo "" fi