Skip to content

Commit

Permalink
Adding config files
Browse files Browse the repository at this point in the history
  • Loading branch information
adi7312 committed Aug 6, 2023
1 parent 066c1a6 commit 0401fbd
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion lees.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
}


Expand Down

0 comments on commit 0401fbd

Please sign in to comment.