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
Paramspider && Arjun before GF patterns
six2deze11af40900f8
diff --git a/reconftw.sh b/reconftw.shindex ba736e4..d53a2a6 100755--- a/reconftw.sh+++ b/reconftw.sh@@ -580,7 +580,7 @@ urlchecks(){theneval github-endpoints -q -k -d $domain -t $tools/.github_tokens -raw $DEBUG_ERROR | anew -q ${domain}_url_extract_tmp.txtfi- cat ${domain}_url_extract_tmp.txt | grep "=" | egrep -iv ".(eot|jpg|jpeg|gif|css|tif|tiff|png|ttf|otf|woff|woff2|ico|pdf|svg|txt|js)" | qsreplace FUZZ | qsreplace -a | anew -q ${domain}_url_extract_tmp2.txt+ cat ${domain}_url_extract_tmp.txt ${domain}_param.txt | grep "=" | egrep -iv ".(eot|jpg|jpeg|gif|css|tif|tiff|png|ttf|otf|woff|woff2|ico|pdf|svg|txt|js)" | qsreplace FUZZ | qsreplace -a | anew -q ${domain}_url_extract_tmp2.txtcat ${domain}_url_extract_tmp.txt | egrep -i ".(js)" | anew -q ${domain}_url_extract_js.txtuddup -u ${domain}_url_extract_tmp2.txt -o ${domain}_url_extract.txt && touch $called_fn_dir/.${FUNCNAME[0]};eval rm ${domain}_url_extract_tmp.txt ${domain}_url_extract_tmp2.txt gospider_tmp.txt $DEBUG_ERROR@@ -660,19 +660,27 @@ params(){start=`date +%s`printf "${yellow}\n\n Running : Finding params with paramspider${reset}\n"cat ${domain}_probed.txt | sed -r "s/https?:\/\///" | anew -q ${domain}_probed_nohttp.txt- interlace -tL ${domain}_probed_nohttp.txt -threads 10 -c "python3 $tools/ParamSpider/paramspider.py -d _target_ -l high -q --exclude jpg,jpeg,gif,css,tif,tiff,png,ttf,woff,woff2,ico,js" &>/dev/null && touch $called_fn_dir/.${FUNCNAME[0]}- find output/ -name '*.txt' -exec cat {} \; | anew -q ${domain}_param.txt- sed '/^FUZZ/d' -i ${domain}_param.txt+ interlace -tL ${domain}_probed_nohttp.txt -threads 10 -c "python3 $tools/ParamSpider/paramspider.py -d _target_ -l high -q --exclude eot,jpg,jpeg,gif,css,tif,tiff,png,ttf,otf,woff,woff2,ico,pdf,svg,txt,js" &>/dev/null && touch $called_fn_dir/.${FUNCNAME[0]}+ find output/ -name '*.txt' -exec cat {} \; | anew -q ${domain}_param_tmp.txt+ sed '/^FUZZ/d' -i ${domain}_param_tmp.txteval rm -rf output/ $DEBUG_ERROReval rm ${domain}_probed_nohttp.txt $DEBUG_ERRORif [ "$DEEP" = true ] ; thenprintf "${yellow}\n\n Running : Checking ${domain} with Arjun${reset}\n"- eval arjun -i ${domain}_param.txt -t 20 -o ${domain}_arjun.json $DEBUG_STD && touch $called_fn_dir/.${FUNCNAME[0]}+ eval arjun -i ${domain}_param_tmp.txt -t 20 -oT ${domain}_param.txt $DEBUG_STD && touch $called_fn_dir/.${FUNCNAME[0]}+ else+ if [[ $(cat ${domain}_param_tmp.txt | wc -l) -le 200 ]]+ then+ eval arjun -i ${domain}_param_tmp.txt -t 20 -oT ${domain}_param.txt $DEBUG_STD && touch $called_fn_dir/.${FUNCNAME[0]}+ else+ cp ${domain}_param_tmp.txt ${domain}_param.txt+ fifi+ eval rm ${domain}_param_tmp.txt $DEBUG_ERRORend=`date +%s`getElapsedTime $start $endprintf "${bblue}\n Parameter Discovery Finished in ${runtime}\n"- printf "${bblue} Results are saved in ${domain}_param.txt and ${domain}_arjun.json${reset}\n"+ printf "${bblue} Results are saved in ${domain}_param.txt${reset}\n"printf "${bgreen}#######################################################################\n\n"elseprintf "${yellow} ${FUNCNAME[0]} is already processed, to force executing ${FUNCNAME[0]} delete $called_fn_dir/.${FUNCNAME[0]} ${reset}\n\n"@@ -1054,6 +1062,7 @@ all(){cms_scannerfuzzcors+ paramsurlchecksurl_gfopen_redirect@@ -1061,7 +1070,6 @@ all(){crlf_checkslfijschecks- paramsxsstest_sslend@@ -1080,6 +1088,7 @@ all(){cms_scannerfuzzcors+ paramsurlchecksurl_gfopen_redirect@@ -1087,7 +1096,6 @@ all(){crlf_checkslfijschecks- paramsxsstest_sslend@@ -1208,6 +1216,7 @@ while getopts ":hd:-:l:x:vaisxwgto:" opt; docms_scannerfuzzcors+ paramsurlchecksurl_gfopen_redirect@@ -1215,7 +1224,6 @@ while getopts ":hd:-:l:x:vaisxwgto:" opt; docrlf_checkslfijschecks- paramsxsstest_sslend