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 JS Url duplicates, closes #13

six2deze1e0388c73d9
diff --git a/reconftw.sh b/reconftw.sh
index f76ee2d..9a07906 100755
--- a/reconftw.sh
+++ b/reconftw.sh
@@ -465,7 +465,7 @@ jschecks(){
start=`date +%s`
printf "${yellow} Running : Fetching Urls 1/5${reset}\n"
cat ${domain}_url_extract.txt | grep -iE "\.js$" | anew -q ${domain}_jsfile_links.txt;
- cat ${domain}_url_extract.txt | subjs >> ${domain}_jsfile_links.txt;
+ cat ${domain}_url_extract.txt | subjs | anew -q ${domain}_jsfile_links.txt;
printf "${yellow} Running : Resolving JS Urls 2/5${reset}\n"
cat ${domain}_jsfile_links.txt | httpx -follow-redirects -silent -status-code | grep "[200]" | cut -d ' ' -f1 | anew -q ${domain}_js_livelinks.txt;
printf "${yellow} Running : Gathering endpoints 3/5${reset}\n"