From eb33101982da3be03ac9c47906ec5e85b249c805 Mon Sep 17 00:00:00 2001 From: Kali Date: Sun, 20 Dec 2020 17:44:04 -0500 Subject: [PATCH] linpeasv2.9.7 --- linPEAS/linpeas.sh | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/linPEAS/linpeas.sh b/linPEAS/linpeas.sh index 1497db1..04ea607 100755 --- a/linPEAS/linpeas.sh +++ b/linPEAS/linpeas.sh @@ -817,10 +817,10 @@ if [ "`echo $CHECKS | grep ProCronSrvcsTmrsSocks`" ] || [ "`echo $CHECKS | grep PASSWD_SPLUNK_RELEVANT_NAMES="passwd" GITLAB_RELEVANT_NAMES="secrets.yml gitlab.yml gitlab.rb" PGP_RELEVANT_NAMES="*.pgp *.gpg .gnupg" - VIM_RELEVANT_NAMES=".*.swp" + VIM_RELEVANT_NAMES=".*.swp .viminfo" DB_RELEVANT_NAMES="*.db *.sqlite *.sqlite3 *.sql" - INSTERESTING_RELEVANT_NAMES="*_history .lesshst .sudo_as_admin_successful .profile *bashrc *httpd.conf *.plan .htpasswd .gitconfig .git-credentials .git .svn *.rhost hosts.equiv Dockerfile docker-compose.yml .viminfo .ldaprc" + INSTERESTING_RELEVANT_NAMES="*_history .lesshst .sudo_as_admin_successful .profile *bashrc *httpd.conf *.plan .htpasswd .gitconfig .git-credentials .git .svn *.rhost hosts.equiv Dockerfile docker-compose.yml .ldaprc" PASSWORD_RELEVANT_NAMES="*password* *credential* creds*" BACKUPS_DIRS_RELEVANT_NAMES="backup backups" @@ -2349,9 +2349,9 @@ if [ "`echo $CHECKS | grep SofI`" ]; then ##-- SI) vi swp files printf $Y"[+] "$GREEN"Searching uncommon passwd files (splunk)\n"$NC - vimswp=$(echo "$FIND_HOME\n$FIND_ETC\n$FIND_VAR\n$FIND_TMP\n$FIND_OPT\n$FIND_USR\n$FIND_MNT\n$FIND_SYSTEM\n$FIND_PRIVATE\n$FIND_APPLICATIONS" | grep -v "\.swp$") - if [ "$vimswp" ]; then echo "Swap files wre found:"; fi - printf "$vimswp\n" | sort | uniq | while read f; do + vimfiles=$(echo "$FIND_HOME\n$FIND_ETC\n$FIND_VAR\n$FIND_TMP\n$FIND_OPT\n$FIND_USR\n$FIND_MNT\n$FIND_SYSTEM\n$FIND_PRIVATE\n$FIND_APPLICATIONS" | grep -Ev "\.swp$|.viminfo") + if [ "$vimfiles" ]; then echo "Vim files wre found:"; fi + printf "$vimfiles\n" | sort | uniq | while read f; do ls -l "$f" done echo "" @@ -2723,7 +2723,7 @@ if [ "`echo $CHECKS | grep IntFiles`" ]; then fils=$(echo "$FIND_ETC\n$FIND_HOME\n$FIND_TMP\n$FIND_USR\n$FIND_OPT\n$FIND_MNT\n$FIND_VAR\n$FIND_PRIVATE\n$FIND_APPLICATIONS" | grep -E '\.lesshst|.*_history|\.sudo_as_admin_successful|\.profile|.*bashrc|.*httpd\.conf|.*\.plan|\.htpasswd|\.gitconfig|\.git-credentials|\.git|\.svn|\.rhosts|hosts\.equiv|Dockerfile|docker-compose\.yml') printf "$fils\n" | while read f; do if [ -r "$f" ]; then - ls -ld "$f" 2>/dev/null | sed "s,_history|\.lesshst|\.sudo_as_admin_successful|.profile|bashrc|httpd.conf|\.plan|\.htpasswd|.gitconfig|\.git-credentials|.git|.svn|\.rhosts|hosts.equiv|Dockerfile|docker-compose.yml|\.viminfo|\.ldaprc,${C}[1;31m&${C}[0m," | sed -E "s,$sh_usrs,${C}[1;96m&${C}[0m,g" | sed "s,$USER,${C}[1;95m&${C}[0m,g" | sed "s,root,${C}[1;31m&${C}[0m,g"; + ls -ld "$f" 2>/dev/null | sed "s,_history|\.lesshst|\.sudo_as_admin_successful|.profile|bashrc|httpd.conf|\.plan|\.htpasswd|.gitconfig|\.git-credentials|.git|.svn|\.rhosts|hosts.equiv|Dockerfile|docker-compose.yml|\.ldaprc,${C}[1;31m&${C}[0m," | sed -E "s,$sh_usrs,${C}[1;96m&${C}[0m,g" | sed "s,$USER,${C}[1;95m&${C}[0m,g" | sed "s,root,${C}[1;31m&${C}[0m,g"; if [ "`echo \"$f\" | grep \"_history\"`" ]; then printf $GREEN"Searching possible passwords inside $f (limit 100)\n"$NC cat "$f" | grep -aE "$pwd_inside_history" | sed '/^.\{150\}./d' | sed -E "s,$pwd_inside_history,${C}[1;31m&${C}[0m," | head -n 100