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
Fix url extraction
six2dez0c0e3a1dded6
diff --git a/reconftw.sh b/reconftw.shindex d2ede2f..c2eae1d 100755--- a/reconftw.sh+++ b/reconftw.sh@@ -492,7 +492,7 @@ portscan(){printf "${bgreen}#######################################################################\n"printf "${bblue} Port Scan ${reset}\n\n"start=`date +%s`- naabu -top-ports 1000 -silent -exclude-cdn -nmap-cli 'nmap -sV --min-rate 40000 -T4 --open --max-retries 2 -oN nmap_output.txt' -iL ${domain}_subdomains.txt > ${domain}_portscan.txt;+ naabu -top-ports 1000 -silent -exclude-cdn -nmap-cli 'nmap -sV --min-rate 40000 -T4 --open --max-retries 2 -oN -' -iL ${domain}_subdomains.txt > ${domain}_portscan.txt;eval cat ${domain}_portscan.txt $DEBUG_ERROR && touch $called_fn_dir/.${FUNCNAME[0]}end=`date +%s`getElapsedTime $start $end@@ -556,18 +556,13 @@ urlchecks(){elsegospider -S ${domain}_probed.txt -t 100 -c 10 -d 1 -a -w --js --sitemap --robots --cookie $COOKIE --blacklist eot,jpg,jpeg,gif,css,tif,tiff,png,ttf,otf,woff,woff2,ico,pdf,svg,txt > gospider_tmp.txtfi- cat gospider_tmp.txt | grep -e "code-200" | awk '{print $5}' | anew -q ${domain}_url_extract_tmp.txt+ cat gospider_tmp.txt | sed "s/^.*http/http/p" | anew -q ${domain}_url_extract_tmp.txtif [ -s "$tools/.github_tokens" ]theneval github-endpoints -q -k -d $domain -t $tools/.github_tokens -raw $DEBUG_ERROR | anew -q ${domain}_url_extract_tmp.txtfi- if [ "$FULLSCOPE" = true ] ; then- 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 | qsreplace -a | anew -q cat ${domain}_url_extract.txt && touch $called_fn_dir/.${FUNCNAME[0]};- cat ${domain}_url_extract_tmp.txt | egrep -iv ".(js)" | anew -q cat ${domain}_url_extract_js.txt- else- cat ${domain}_url_extract_tmp.txt | grep ".$domain$" | grep "=" | egrep -iv ".(eot|jpg|jpeg|gif|css|tif|tiff|png|ttf|otf|woff|woff2|ico|pdf|svg|txt|js)" | qsreplace | qsreplace -a | anew -q cat ${domain}_url_extract.txt && touch $called_fn_dir/.${FUNCNAME[0]};- cat ${domain}_url_extract_tmp.txt | grep ".$domain$" | egrep -iv ".(js)" | anew -q cat ${domain}_url_extract_js.txt- fi+ 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 | qsreplace -a | anew -q ${domain}_url_extract.txt && touch $called_fn_dir/.${FUNCNAME[0]};+ cat ${domain}_url_extract_tmp.txt | egrep -i ".(js)" | anew -q ${domain}_url_extract_js.txteval rm ${domain}_url_extract_tmp.txt gospider_tmp.txt $DEBUG_ERRORend=`date +%s`getElapsedTime $start $end