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

fix output directory deletion

Nico Kokonas50265c9202b0
diff --git a/reconftw.sh b/reconftw.sh
index 9dd293a..eee5455 100755
--- a/reconftw.sh
+++ b/reconftw.sh
@@ -1745,7 +1745,7 @@ function isAsciiText {
function output(){
mkdir -p $dir_output
cp -r $dir $dir_output
- [[ "$dir" != "$dir_output" ]] && rm -rf "$dir"
+ [[ "$(dirname $dir)" != "$dir_output" ]] && rm -rf "$dir"
}
function remove_big_files(){