Skip to content

reconFTW is a tool designed to perform automated recon on a target domain by running the best set of tools to perform scanning and finding out vulnerabilities

Remove empty files and folders

six2dezc1f42df8cb6b
diff --git a/reconftw.sh b/reconftw.sh
index 2df68a5..b2929cd 100755
--- a/reconftw.sh
+++ b/reconftw.sh
@@ -1039,6 +1039,8 @@ function isAsciiText {
}
end(){
+ find $dir -path ./.called_fn -prune -o -print -size 0 -exec rm -rf {} \; &>/dev/null
+ find $dir -type d -empty -delete &>/dev/null
if [ -n "$dir_output" ]
then
output