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

Clean empty files and folders

six2dez740d1accbb03
diff --git a/reconftw.sh b/reconftw.sh
index 426361b..285753c 100755
--- a/reconftw.sh
+++ b/reconftw.sh
@@ -1975,8 +1975,8 @@ function start(){
function end(){
- find $dir -type f -empty -print | grep -v '.called_fn' | grep -v '.log' | grep -v '.tmp' | xargs rm -f
- find $dir -type d -empty -print -delete
+ find $dir -type f -empty -print | grep -v '.called_fn' | grep -v '.log' | grep -v '.tmp' | xargs rm -f &>/dev/null
+ find $dir -type d -empty -print -delete &>/dev/null
if [ ! "$PRESERVE" = true ]; then
find $dir -type f -empty | grep -v "called_fn" | xargs rm -f &>/dev/null