1
mirror of https://github.com/carlospolop/PEASS-ng synced 2025-03-25 05:46:23 +01:00

Update linpeas.sh

This commit is contained in:
Carlos Polop 2020-08-20 23:31:52 +02:00 committed by GitHub
parent 3fff6f51e5
commit bb164f8eee
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -1266,7 +1266,7 @@ if [ "`echo $CHECKS | grep UsrI`" ]; then
fi
(cat /etc/sudoers | grep -v "^$" | grep -v "#" | sed "s,_proxy,${C}[1;31m&${C}[0m,g" | sed "s,$sudoG,${C}[1;32m&${C}[0m,g" | sed "s,$sudoB,${C}[1;31m&${C}[0m,g" | sed "s,pwfeedback,${C}[1;31m&${C}[0m,g" | sed "s,$sudoVB,${C}[1;31;103m&${C}[0m,") 2>/dev/null || echo_not_found "/etc/sudoers"
for filename in '/etc/sudoers.d/*'; do
if [ -r $filename ]; then
if [ -r "$filename" ]; then
echo "Sudoers file: $filename is readable" | sed "s,.*,${C}[1;31m&${C}[0m,g"
cat $filename | grep -v "^$" | grep -v "#" | sed "s,_proxy,${C}[1;31m&${C}[0m,g" | sed "s,$sudoG,${C}[1;32m&${C}[0m,g" | sed "s,$sudoB,${C}[1;31m&${C}[0m,g" | sed "s,pwfeedback,${C}[1;31m&${C}[0m,g" | sed "s,$sudoVB,${C}[1;31;103m&${C}[0m,"
fi