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 sendtozip

six2dezb78d51d26d90
diff --git a/reconftw.sh b/reconftw.sh
index 7295a9a..f8f82e4 100755
--- a/reconftw.sh
+++ b/reconftw.sh
@@ -1944,12 +1944,12 @@ function getElapsedTime {
function zipSnedOutputFolder {
zip_name=`date +"%Y_%m_%d-%H.%M.%S"`
zip_name="$zip_name"_"$domain.zip"
- (cd $dir && zip -r "../$zip_name" .)
+ (cd $dir && zip -r "$zip_name" .)
- echo "Sending zip file "${dir_output}/${zip_name}""
- if [ -s "$dir_output/$zip_name" ]; then
- sendToNotify "$dir_output/$zip_name"
- rm -f "$dir_output/$zip_name"
+ echo "Sending zip file "${dir}/${zip_name}""
+ if [ -s "${dir}/$zip_name" ]; then
+ sendToNotify "$dir/$zip_name"
+ rm -f "${dir}/$zip_name"
else
notification "No Zip file to send" warn
fi