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

feat: zip should run in subshell, avoiding nested directories

Nico Kokonas6323c27dd3ae
diff --git a/reconftw.sh b/reconftw.sh
index e93b0f8..fcca15e 100755
--- a/reconftw.sh
+++ b/reconftw.sh
@@ -1870,7 +1870,9 @@ function getElapsedTime {
function zipSnedOutputFolder {
zip_name=`date +"%Y_%m_%d-%H.%M.%S"`
zip_name="$zip_name"_"$domain.zip"
- cd $SCRIPTPATH && zip -r $zip_name $dir &>/dev/null
+ (cd $dir && zip -r "../$zip_name" .)
+ file "$SCRIPTPATH/$zip_name" # wip, just checking if the file is created
+
if [ -s "$SCRIPTPATH/$zip_name" ]; then
sendToNotify "$SCRIPTPATH/$zip_name"
rm -f "$SCRIPTPATH/$zip_name"