From 67c6de43f916de3d369f22e66ce3de705b75410a Mon Sep 17 00:00:00 2001 From: Ali Kaba <5981322+alibkaba@users.noreply.github.com> Date: Fri, 2 Mar 2018 18:01:42 -0500 Subject: [PATCH] Update linuxprivchecker.sh commenting out apache enumerations. --- linuxprivchecker.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/linuxprivchecker.sh b/linuxprivchecker.sh index f870476..7fcd551 100755 --- a/linuxprivchecker.sh +++ b/linuxprivchecker.sh @@ -170,7 +170,7 @@ filePERMISSIONS(){ cmdRESPONSE "find / \( -wholename '/home/homedir*' -prune \) -o \( -type d -perm -o+w \) -exec ls -ld '{}' ';' | grep root"; systemNAME="World Writeables Directories for non-root Users"; - cmdRESPONSE "find / \( -wholename '/home/homedir*' -prune \) -o \( -type d -perm -0002 \) -exec ls -ld '{}' ';' | grep -v root "; + cmdRESPONSE "find / \( -wholename '/home/homedir*' -prune \) -o \( -type d -perm -0002 \) -exec ls -ld '{}' ';' | grep -v root"; systemNAME="World Writeables Files"; cmdRESPONSE "find / \( -wholename '/home/homedir/*' -prune -o -wholename '/proc/*' -prune \) -o \( -type f -perm -0 002 \) -exec ls -l '{}' ';'"; @@ -198,11 +198,11 @@ applicationSERVICES(){ systemNAME="Sudo version"; cmdRESPONSE "sudo -V | grep version"; - systemNAME="Apache Version and Modules"; - cmdRESPONSE "apache2 -v 2>/dev/null; apache2ctl -M 2>/dev/null; httpd -v 2>/dev/null; apachectl -l"; +# systemNAME="Apache Version and Modules"; +# cmdRESPONSE "apache2 -v 2>/dev/null; apache2ctl -M 2>/dev/null; httpd -v 2>/dev/null; apachectl -l"; - systemNAME="Apache Config File"; - cmdRESPONSE "cat /etc/apache2/apache2.conf"; +# systemNAME="Apache Config File"; +# cmdRESPONSE "cat /etc/apache2/apache2.conf"; systemNAME="Processes and Packages Running as Root or other Superuser"; EXTDGREP="($(ps -u 0 | tail -n+2 | rev | cut -d " " -f 1 | rev | cut -d "/" -f1 | sort | uniq | xargs | tr " " "|"))";