1
mirror of https://github.com/carlospolop/PEASS-ng synced 2025-02-21 10:30:58 +01:00

linpeasv2.3.7

This commit is contained in:
carlospolop 2020-03-03 21:04:54 +00:00
parent 86d8d5c2e6
commit f56c8f6cf0
2 changed files with 13 additions and 1 deletions

@ -211,6 +211,7 @@ file="/tmp/linPE";RED='\033[0;31m';Y='\033[0;33m';B='\033[0;34m';NC='\033[0m';rm
- [x] Dovecot
- [x] Mosquitto
- [x] Neo4j
- [x] Cloud-Init
- **Generic Interesting Files**

@ -1,6 +1,6 @@
#!/bin/sh
VERSION="v2.3.6"
VERSION="v2.3.7"
ADVISORY="linpeas should be used for authorized penetration testing and/or educational purposes only. Any misuse of this software will not be the responsibility of the author or of any other collaborator. Use it at your own networks and/or with the network owner's permission."
@ -1443,6 +1443,17 @@ if [ "`echo $CHECKS | grep SofI`" ]; then
fi
done
echo ""
##-- 40SI) Cloud-Init
printf $Y"[+] "$GREEN"Looking Cloud-Init conf file\n"$NC
cloudcfg=`find /var /etc /home /root /tmp /usr /opt -type f -name "cloud.cfg" 2>/dev/null`
for f in $cloudcfg; do
if [ -r $f ]; then
echo "Found readable $f"
cat "$f" | grep -v "^#" | grep -Pv "\W*\#" 2>/dev/null | grep -v "^$" | grep "consumer_key\|token_key\|token_secret\|metadata_url\|username:\|password:\|passwd:\|PRIVATE KEY\|PRIVATE KEY\|encrypted_data_bag_secret\|sudo\|_proxy" | sed "s,consumer_key\|token_key\|token_secret\|metadata_url\|password:\|[^_]passwd:\|PRIVATE KEY\|PRIVATE KEY\|encrypted_data_bag_secret\|_proxy,${C}[1;31m&${C}[0m,"
fi
done
echo ""
echo ""
fi