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 kill_pid

six2dez72e3585266ac
diff --git a/reconftw.sh b/reconftw.sh
index 838b640..dc37ee4 100755
--- a/reconftw.sh
+++ b/reconftw.sh
@@ -1156,8 +1156,8 @@ function ssrf_checks(){
end_func "Skipping SSRF: Too many URLs to test, try with --deep flag" ${FUNCNAME[0]}
fi
fi
- [ -z "$INTERACT_PID" ] && kill $INTERACT_PID
- [ -z "$INTERACT_PID" ] && unset $INTERACT_PID
+ [ -n "$INTERACT_PID" ] && kill $INTERACT_PID
+ [ -n "$INTERACT_PID" ] && unset $INTERACT_PID
else
if [ "$SSRF_CHECKS" = false ]; then
printf "\n${yellow} ${FUNCNAME[0]} skipped in this mode or defined in reconftw.cfg ${reset}\n"
diff --git a/reconftw_axiom.sh b/reconftw_axiom.sh
index 6113191..4efa859 100755
--- a/reconftw_axiom.sh
+++ b/reconftw_axiom.sh
@@ -1185,8 +1185,8 @@ function ssrf_checks(){
end_func "Skipping SSRF: Too many URLs to test, try with --deep flag" ${FUNCNAME[0]}
fi
fi
- [ -z "$INTERACT_PID" ] && kill $INTERACT_PID
- [ -z "$INTERACT_PID" ] && unset $INTERACT_PID
+ [ -n "$INTERACT_PID" ] && kill $INTERACT_PID
+ [ -n "$INTERACT_PID" ] && unset $INTERACT_PID
else
if [ "$SSRF_CHECKS" = false ]; then
printf "\n${yellow} ${FUNCNAME[0]} skipped in this mode or defined in reconftw.cfg ${reset}\n"