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 roboxtractor and #343
six2dez214f379a313a
diff --git a/reconftw.cfg b/reconftw.cfgindex 0d51290..30fac62 100644--- a/reconftw.cfg+++ b/reconftw.cfg@@ -6,7 +6,7 @@tools=~/ToolsSCRIPTPATH="$( cd "$(dirname "$0")" >/dev/null 2>&1 ; pwd -P )"profile_shell=".$(basename $(echo $SHELL))rc"-reconftw_version=$(git branch --show-current)-$(git describe --tags)+reconftw_version=$(git rev-parse --abbrev-ref HEAD)-$(git describe --tags)update_resolvers=trueproxy_url="http://127.0.0.1:8080/"#dir_output=/custom/output/path@@ -22,7 +22,7 @@ export PATH=$GOPATH/bin:$GOROOT/bin:$HOME/.local/bin:$PATHAMASS_CONFIG=~/.config/amass/config.iniGITHUB_TOKENS=${tools}/.github_tokens-# APIs/TOKENS - Uncomment the lines you set removing the '#' at the beginning of the line+# APIs/TOKENS - Uncomment the lines you want removing the '#' at the beginning of the line#UDORK_COOKIE="c_user=XXXXXXXXXX; xs=XXXXXXXXXXXXXX"#SHODAN_API_KEY="XXXXXXXXXXXXX"#XSS_SERVER="XXXXXXXXXXXXXXXXX"diff --git a/reconftw.sh b/reconftw.shindex b29b658..7d5079e 100755--- a/reconftw.sh+++ b/reconftw.sh@@ -980,12 +980,11 @@ function jschecks(){start_func "Javascript Scan"if [ -s "js/url_extract_js.txt" ]; thenprintf "${yellow} Running : Fetching Urls 1/5${reset}\n"- cp js/url_extract_js.txt js/jsfile_links.txt- cat js/jsfile_links.txt | subjs -c 40 | grep "$domain" | anew -q .tmp/subjslinks.txt+ cat js/url_extract_js.txt | subjs -c 40 | grep "$domain" | anew -q .tmp/subjslinks.txt[ -s .tmp/subjslinks.txt ] && cat .tmp/subjslinks.txt | egrep -iv "\.(eot|jpg|jpeg|gif|css|tif|tiff|png|ttf|otf|woff|woff2|ico|pdf|svg|txt|js)" | anew -q js/nojs_links.txt- [ -s .tmp/subjslinks.txt ] && cat .tmp/subjslinks.txt | grep -iE "\.js" | anew -q js/jsfile_links.txt+ [ -s .tmp/subjslinks.txt ] && cat .tmp/subjslinks.txt | grep -iE "\.js" | anew -q js/url_extract_js.txtprintf "${yellow} Running : Resolving JS Urls 2/5${reset}\n"- [ -s "js/jsfile_links.txt" ] && cat js/jsfile_links.txt | httpx -follow-redirects -random-agent -silent -timeout $HTTPX_TIMEOUT -threads $HTTPX_THREADS -status-code -retries 2 -no-color | grep "[200]" | cut -d ' ' -f1 | anew -q js/js_livelinks.txt+ [ -s "js/url_extract_js.txt" ] && cat js/url_extract_js.txt | httpx -follow-redirects -random-agent -silent -timeout $HTTPX_TIMEOUT -threads $HTTPX_THREADS -status-code -retries 2 -no-color | grep "[200]" | cut -d ' ' -f1 | anew -q js/js_livelinks.txtprintf "${yellow} Running : Gathering endpoints 3/5${reset}\n"if [ -s "js/js_livelinks.txt" ]; theninterlace -tL js/js_livelinks.txt -threads 10 -c "python3 $tools/LinkFinder/linkfinder.py -d -i _target_ -o cli >> .tmp/js_endpoints.txt" &>/dev/null@@ -1039,7 +1038,7 @@ function wordlist_gen_roboxtractor(){if { [ ! -f "$called_fn_dir/.${FUNCNAME[0]}" ] || [ "$DIFF" = true ]; } && [ "$ROBOTSWORDLIST" = true ]; thenstart_func "Robots wordlist generation"if [ -s "webs/webs.txt" ]; then- cat webs/webs.txt | roboxtractor -m 1 -wb | anew -q webs/robots_wordlist.txt+ cat webs/webs.txt | roboxtractor -m 1 -wb 2>>"$LOGFILE" | anew -q webs/robots_wordlist.txtfiend_func "Results are saved in $domain/webs/robots_wordlist.txt" ${FUNCNAME[0]}elsediff --git a/reconftw_axiom.sh b/reconftw_axiom.shindex ebbc2ea..8d9ee2a 100755--- a/reconftw_axiom.sh+++ b/reconftw_axiom.sh@@ -1000,22 +1000,22 @@ function jschecks(){start_func "Javascript Scan"if [ -s "js/url_extract_js.txt" ]; thenprintf "${yellow} Running : Fetching Urls 1/5${reset}\n"- cp js/url_extract_js.txt js/jsfile_links.txt- cat js/jsfile_links.txt | subjs -c 40 | grep "$domain" | anew -q .tmp/subjslinks.txt+ axiom-scan js/url_extract_js.txt -m subjs -o .tmp/subjslinks.txt 2>>"$LOGFILE" &>/dev/null[ -s .tmp/subjslinks.txt ] && cat .tmp/subjslinks.txt | egrep -iv "\.(eot|jpg|jpeg|gif|css|tif|tiff|png|ttf|otf|woff|woff2|ico|pdf|svg|txt|js)" | anew -q js/nojs_links.txt- [ -s .tmp/subjslinks.txt ] && cat .tmp/subjslinks.txt | grep -iE "\.js" | anew -q js/jsfile_links.txt+ [ -s .tmp/subjslinks.txt ] && cat .tmp/subjslinks.txt | grep -iE "\.js" | anew -q js/url_extract_js.txtprintf "${yellow} Running : Resolving JS Urls 2/5${reset}\n"- [ -s "js/jsfile_links.txt" ] && cat js/jsfile_links.txt | httpx -follow-redirects -random-agent -silent -timeout $HTTPX_TIMEOUT -threads $HTTPX_THREADS -status-code -retries 2 -no-color | grep "[200]" | cut -d ' ' -f1 | anew -q js/js_livelinks.txt+ [ -s "js/url_extract_js.txt" ] && axiom-scan js/url_extract_js.txt -m httpx -follow-host-redirects -random-agent -status-code -threads $HTTPX_THREADS -timeout $HTTPX_TIMEOUT -silent -retries 2 -no-color -o .tmp/js_livelinks.txt 2>>"$LOGFILE" &>/dev/null+ [ -s ".tmp/js_livelinks.txt" ] && cat .tmp/js_livelinks.txt | grep "[200]" | cut -d ' ' -f1 | anew -q js/js_livelinks.txtprintf "${yellow} Running : Gathering endpoints 3/5${reset}\n"if [ -s "js/js_livelinks.txt" ]; then- interlace -tL js/js_livelinks.txt -threads 10 -c "python3 $tools/LinkFinder/linkfinder.py -d -i _target_ -o cli >> .tmp/js_endpoints.txt" &>/dev/null+ axiom-scan js/js_livelinks.txt -m linkfinder -o .tmp/js_endpoints.txt 2>>"$LOGFILE" &>/dev/nullfiif [ -s ".tmp/js_endpoints.txt" ]; thensed -i '/^\//!d' .tmp/js_endpoints.txtcat .tmp/js_endpoints.txt | anew -q js/js_endpoints.txtfiprintf "${yellow} Running : Gathering secrets 4/5${reset}\n"- [ -s "js/js_livelinks.txt" ] && cat js/js_livelinks.txt | nuclei -silent -t ~/nuclei-templates/exposures/tokens/ -r $resolvers_trusted -o js/js_secrets.txt 2>>"$LOGFILE" &>/dev/null+ [ -s "js/js_livelinks.txt" ] && axiom-scan js/js_livelinks.txt -m nuclei -w /home/op/recon/nuclei/exposures/tokens/ -o js/js_secrets.txt 2>>"$LOGFILE" &>/dev/nullprintf "${yellow} Running : Building wordlist 5/5${reset}\n"[ -s "js/js_livelinks.txt" ] && cat js/js_livelinks.txt | python3 $tools/getjswords.py 2>>"$LOGFILE" | anew -q webs/dict_words.txtend_func "Results are saved in $domain/js folder" ${FUNCNAME[0]}@@ -1059,7 +1059,7 @@ function wordlist_gen_roboxtractor(){if { [ ! -f "$called_fn_dir/.${FUNCNAME[0]}" ] || [ "$DIFF" = true ]; } && [ "$ROBOTSWORDLIST" = true ]; thenstart_func "Robots wordlist generation"if [ -s "webs/webs.txt" ]; then- cat webs/webs.txt | roboxtractor -m 1 -wb | anew -q webs/robots_wordlist.txt+ cat webs/webs.txt | roboxtractor -m 1 -wb 2>>"$LOGFILE" | anew -q webs/robots_wordlist.txtfiend_func "Results are saved in $domain/webs/robots_wordlist.txt" ${FUNCNAME[0]}else@@ -1536,11 +1536,7 @@ function axiom_lauch(){NUMOFNODES=$(timeout 30 axiom-ls | grep -c "$AXIOM_FLEET_NAME")if [[ $NUMOFNODES -ge $AXIOM_FLEET_COUNT ]]; thenaxiom-select "$AXIOM_FLEET_NAME*"- # if [ -n "$AXIOM_POST_START" ]; then- # eval "$AXIOM_POST_START"- # fiend_func "Axiom fleet $AXIOM_FLEET_NAME already has $NUMOFNODES instances"- # elif [[ $NUMOFNODES -eq 0 ]]; thenelseif [[ $NUMOFNODES -eq 0 ]]; thenstartcount=$AXIOM_FLEET_COUNT@@ -1555,7 +1551,7 @@ function axiom_lauch(){axiom-fleet $AXIOM_FLEET_NAME "$axiom_args"axiom-select "$AXIOM_FLEET_NAME*"if [ -n "$AXIOM_POST_START" ]; then- eval "$AXIOM_POST_START"+ eval "$AXIOM_POST_START" 2>>"$LOGFILE" &>/dev/nullfiNUMOFNODES=$(timeout 30 axiom-ls | grep -c "$AXIOM_FLEET_NAME" )