这是indexloc提供的服务,不要输入任何密码
Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions linuxprivchecker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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 '{}' ';'";
Expand Down Expand Up @@ -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 " " "|"))";
Expand Down