From d2dd74f2d4bfb3236d30cf79dfc7ebf43664ce1e Mon Sep 17 00:00:00 2001 From: kegan Date: Thu, 21 May 2020 17:59:18 -0500 Subject: [PATCH] add username to id in grpinfo add to the for loop stored to grpinfo that will also output the username passed into id. --- LinEnum.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/LinEnum.sh b/LinEnum.sh index d8c69f2..f088808 100755 --- a/LinEnum.sh +++ b/LinEnum.sh @@ -139,7 +139,7 @@ if [ "$loggedonusrs" ]; then fi #lists all id's and respective group(s) -grpinfo=`for i in $(cut -d":" -f1 /etc/passwd 2>/dev/null);do id $i;done 2>/dev/null` +grpinfo=`for i in $(cut -d":" -f1 /etc/passwd 2>/dev/null);do echo -e "$i : $(id $i)";done 2>/dev/null` if [ "$grpinfo" ]; then echo -e "\e[00;31m[-] Group memberships:\e[00m\n$grpinfo" echo -e "\n"