diff --git a/linpeas.sh b/linpeas.sh index caae22a..22f8812 100755 --- a/linpeas.sh +++ b/linpeas.sh @@ -1,6 +1,6 @@ #!/bin/sh -VERSION="v2.1.4" +VERSION="v2.1.5" ########################################### #---------------) Colors (----------------# @@ -1361,7 +1361,7 @@ echo "" ##-- 25IF) Passwords files in home printf $Y"[+] "$GREEN"Finding *password* or *credential* files in home\n"$NC -(find /home /root -type f \( -name "*password*" -o -name "*credential*" sed "s,password\|credential,${C}[1;31m&${C}[0m,") || echo_not_found +(find /home /root -type f \( -name "*password*" -o -name "*credential*" \) 2>/dev/null | sed "s,password\|credential,${C}[1;31m&${C}[0m,") || echo_not_found if ! [ "$SUPERFAST" ]; then ##-- 26IF) Passwords inside files @@ -1370,4 +1370,4 @@ if ! [ "$SUPERFAST" ]; then grep -R -i "password.* = ['\"]\|define.*passw" /var/www /root /home 2>/dev/null | grep "\.php" | grep -v "function\|password.* = \"\"\|password.* = ''" | sed '/^.\{150\}./d' | sort | uniq | sed "s,password,${C}[1;31m&${C}[0m," grep -R -i "password" /etc 2>/dev/null | grep "conf" | grep -v ":#\|:/\*\|: \*" | sort | uniq | sed "s,password,${C}[1;31m&${C}[0m," echo "" -fi \ No newline at end of file +fi