From 55e81e7e0a04feedf82226b7b7cda5006f8a5e3c Mon Sep 17 00:00:00 2001 From: Dyan Galih Date: Fri, 22 Dec 2023 15:26:20 +0700 Subject: [PATCH] Split scan writeable folder and writeable files --- scan.sh | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/scan.sh b/scan.sh index 94134ea..5a14711 100644 --- a/scan.sh +++ b/scan.sh @@ -66,6 +66,11 @@ if [ ${#unique_grep_results[@]} -ne 0 ]; then fi echo "===================================================================================================" -echo "writeable file or folder list:" +echo "writeable folder list:" -find $path -type d,f -perm /u=w,g=w,o=w \ No newline at end of file +find $path -type d -perm /u=w,g=w,o=w + +echo "===================================================================================================" +echo "writeable file list:" + +find $path -type f -perm /u=w,g=w,o=w \ No newline at end of file