1
mirror of https://github.com/carlospolop/PEASS-ng synced 2025-02-17 21:41:25 +01:00
This commit is contained in:
Carlos Polop 2019-10-30 00:59:21 +00:00 committed by GitHub
parent fa7173fbdc
commit 914f7f515f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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
fi