From 0401fbd5c83fa25fcd7d1e96a924a6bdbd383fec Mon Sep 17 00:00:00 2001 From: ad1s0n Date: Mon, 7 Aug 2023 00:37:26 +0200 Subject: [PATCH] Adding config files --- lees.sh | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/lees.sh b/lees.sh index d24308c..3f08465 100755 --- a/lees.sh +++ b/lees.sh @@ -220,7 +220,7 @@ function env_enum(){ fi # check available shells - shells=`cat /etc/shells 2>/dev/null` + shells=`cat /etc/shells 2>/dev/null | tail -n +1` if [[ $shells ]]; then echo -e "[*] Available shells: \n$shells" else @@ -240,6 +240,14 @@ function files_enum(){ echo -e "[-] Can't get any SUID binaries" fi + # looking for .config files + config_files=`timeout 5 find / ! -path /proc -iname "*config*" 2>/dev/null` + if [[ $config_files ]]; then + echo -e "\e[0;31m[+] config files: \n\e[m" + echo -e "\e[0;34m$config_files\e[m" + else + echo -e "[-] Can't get any .config files" + fi }