From 9a0173ad7a533e7cbed0a266235b2cdc4a900a42 Mon Sep 17 00:00:00 2001 From: carlospolop Date: Thu, 26 Dec 2019 05:44:00 -0500 Subject: [PATCH] linpeasv2.2.6 --- linPEAS/linpeas.sh | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/linPEAS/linpeas.sh b/linPEAS/linpeas.sh index cc6fdf0..943c94e 100755 --- a/linPEAS/linpeas.sh +++ b/linPEAS/linpeas.sh @@ -981,6 +981,7 @@ if [ "`echo $CHECKS | grep SofI`" ]; then if [ -r $f ]; then echo "Found readable $f" cat "$f" | grep -v "^#" | grep -v "^$" | sed "s,auth\|password\|md5\|user=\|pass=,${C}[1;31m&${C}[0m," 2>/dev/null + echo "" fi done else echo_not_found @@ -1378,6 +1379,17 @@ if [ "`echo $CHECKS | grep SofI`" ]; then done fi echo "" + + ##-- 36SI) Mosquitto + printf $Y"[+] "$GREEN"Looking for mosquitto.conf\n"$NC + mqttconfs=`find /var /etc /home /root /tmp /usr /opt -type f -name "mosquitto.conf" 2>/dev/null` + for f in $mqttconfs; do + if [ -r $f ]; then + echo "Found readable $f" + cat "$f" | grep -v "^#" | grep -v "^$" | sed "s,password_file.*\|psk_file.*\|allow_anonymous.*true\|auth,${C}[1;31m&${C}[0m," 2>/dev/null + fi + done + echo "" echo "" fi