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

ececute test_ssl only with DEEP flag

Bilel Eljaamiic557d5985932
diff --git a/reconftw.sh b/reconftw.sh
index 605a3f7..426dfa1 100755
--- a/reconftw.sh
+++ b/reconftw.sh
@@ -845,17 +845,19 @@ cors(){
test_ssl(){
if [ ! -f "$called_fn_dir/.${FUNCNAME[0]}" ]
then
- printf "${bgreen}#######################################################################\n"
- printf "${bblue} SSL Test ${reset}\n"
- start=`date +%s`
- eval cat ${domain}_probed.txt $DEBUG_ERROR | grep "^https" | anew -q ${domain}_probed_https.txt
- $tools/testssl.sh/testssl.sh --quiet --color 0 -U -iL ${domain}_probed_https.txt > ${domain}_testssl.txt && touch $called_fn_dir/.${FUNCNAME[0]}
- eval rm ${domain}_probed_https.txt $DEBUG_ERROR
- end=`date +%s`
- getElapsedTime $start $end
- printf "${bblue}\n SSL Test Finished in ${runtime}\n"
- printf "${bblue} Results are saved in ${domain}_testssl.txt ${reset}\n"
- printf "${bgreen}#######################################################################\n"
+ if [ "$DEEP" = true ] ; then
+ printf "${bgreen}#######################################################################\n"
+ printf "${bblue} SSL Test ${reset}\n"
+ start=`date +%s`
+ eval cat ${domain}_probed.txt $DEBUG_ERROR | grep "^https" | anew -q ${domain}_probed_https.txt
+ $tools/testssl.sh/testssl.sh --quiet --color 0 -U -iL ${domain}_probed_https.txt > ${domain}_testssl.txt && touch $called_fn_dir/.${FUNCNAME[0]}
+ eval rm ${domain}_probed_https.txt $DEBUG_ERROR
+ end=`date +%s`
+ getElapsedTime $start $end
+ printf "${bblue}\n SSL Test Finished in ${runtime}\n"
+ printf "${bblue} Results are saved in ${domain}_testssl.txt ${reset}\n"
+ printf "${bgreen}#######################################################################\n"
+ fi
else
printf "${yellow} ${FUNCNAME[0]} is already processed, to force executing ${FUNCNAME[0]} delete $called_fn_dir/.${FUNCNAME[0]} ${reset}\n\n"
fi