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
Shell bug-bountybugbountybugbounty-tooldnshackingnucleiosintpenetration-testingpentestpentest-toolpentestingreconreconnaissancescannersecuritysecurity-toolssubdomainsubdomain-enumerationvulnerabilities
closes #97
Bilel Eljaamii6dd99d05ceac
diff --git a/reconftw.sh b/reconftw.shindex b06e98d..1005991 100755--- a/reconftw.sh+++ b/reconftw.sh@@ -722,12 +722,18 @@ cms_scanner(){printf "${bgreen}#######################################################################\n"printf "${bblue} CMS Scanner ${reset}\n"start=`date +%s`- mkdir -p $dir/cms+ mkdir -p $dir/cms && rm -rf $dir/cms/*tr '\n' ',' < ${domain}_probed.txt > ${domain}_cms.txteval python3 $tools/CMSeeK/cmseek.py -l ${domain}_cms.txt --batch -r $DEBUG_STDfor sub in $(cat ${domain}_probed.txt); dosub_out=$(echo $sub | sed -e 's|^[^/]*//||' -e 's|/.*$||')- mv $tools/CMSeeK/Result/${sub_out} $dir/cms/+ cms_id=$(cat $tools/CMSeeK/Result/${sub_out}/cms.json | jq -r '.cms_id')+ if [ -z "$cms_id" ]+ then+ rm -rf $tools/CMSeeK/Result/${sub_out}+ else+ mv -f $tools/CMSeeK/Result/${sub_out} $dir/cms/+ fidoneeval rm ${domain}_cms.txt $DEBUG_ERRORtouch $called_fn_dir/.${FUNCNAME[0]}