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

if statement clean ups

ItsGudEnufa4e1a1d8e920
diff --git a/reconftw_axiom.sh b/reconftw_axiom.sh
index dbc6b06..61ab544 100755
--- a/reconftw_axiom.sh
+++ b/reconftw_axiom.sh
@@ -22,20 +22,20 @@ function banner(){
###############################################################################################################
function check_version(){
-
-eval timeout 10 git fetch $DEBUG_STD
-exit_status=$?
-if [ $exit_status -eq 0 ]; then
- BRANCH=$(git rev-parse --abbrev-ref HEAD)
- HEADHASH=$(git rev-parse HEAD)
- UPSTREAMHASH=$(git rev-parse ${BRANCH}@{upstream})
- if [ "$HEADHASH" != "$UPSTREAMHASH" ]; then
- printf "\n${yellow} There is a new version, run ./install.sh to get latest version${reset}\n\n"
- fi
-else
- printf "\n${bred} Unable to check updates ${reset}\n\n"
-fi
-
+ eval timeout 10 git fetch $DEBUG_STD
+ exit_status=$?
+ if [ $exit_status -eq 0 ]
+ then
+ BRANCH=$(git rev-parse --abbrev-ref HEAD)
+ HEADHASH=$(git rev-parse HEAD)
+ UPSTREAMHASH=$(git rev-parse ${BRANCH}@{upstream})
+ if [ "$HEADHASH" != "$UPSTREAMHASH" ]
+ then
+ printf "\n${yellow} There is a new version, run ./install.sh to get latest version${reset}\n\n"
+ fi
+ else
+ printf "\n${bred} Unable to check updates ${reset}\n\n"
+ fi
}
function tools_installed(){
@@ -325,7 +325,7 @@ function sub_passive(){
}
function sub_crt(){
- if ([ ! -f "$called_fn_dir/.${FUNCNAME[0]}" ] || [ "$DIFF" = true ]) && [ "$SUBCRT" = true ]; then
+ if { [ ! -f "$called_fn_dir/.${FUNCNAME[0]}" ] || [ "$DIFF" = true ]; } && [ "$SUBCRT" = true ]; then
start_subfunc "Running : Crtsh Subdomain Enumeration"
echo "python3 -u /home/op/recon/ctfr/ctfr.py -d ${domain} -o ${domain}_ctfr.txt; cat ${domain}_ctfr.txt" > .tmp/sub_ctrf_commands.txt
eval axiom-scan .tmp/sub_ctrf_commands.txt -m exec -o .tmp/crtsh_subs_tmp.txt $DEBUG_STD
@@ -373,7 +373,7 @@ function sub_dns(){
}
function sub_brute(){
- if ([ ! -f "$called_fn_dir/.${FUNCNAME[0]}" ] || [ "$DIFF" = true ]) && [ "$SUBBRUTE" = true ]; then
+ if { [ ! -f "$called_fn_dir/.${FUNCNAME[0]}" ] || [ "$DIFF" = true ]; } && [ "$SUBBRUTE" = true ]; then
start_subfunc "Running : Bruteforce Subdomain Enumeration"
if [ "$DEEP" = true ]; then
eval axiom-scan $subs_wordlist_big -m puredns-single $domain -r /home/op/lists/resolvers.txt -o .tmp/subs_brute.txt $DEBUG_STD
@@ -427,7 +427,7 @@ function sub_scraping(){
}
function sub_permut(){
- if ([ ! -f "$called_fn_dir/.${FUNCNAME[0]}" ] || [ "$DIFF" = true ]) && [ "$SUBPERMUTE" = true ]; then
+ if { [ ! -f "$called_fn_dir/.${FUNCNAME[0]}" ] || [ "$DIFF" = true ]; } && [ "$SUBPERMUTE" = true ]; then
start_subfunc "Running : Permutations Subdomain Enumeration"
if [ "$DEEP" = true ]; then
eval axiom-scan subdomains/subdomains.txt -m dnscewl -o .tmp/DNScewl1_.txt $DEBUG_STD && cat .tmp/DNScewl1_.txt | grep ".$domain$" > .tmp/DNScewl1.txt
@@ -485,7 +485,7 @@ function sub_permut(){
}
function sub_recursive(){
- if ([ ! -f "$called_fn_dir/.${FUNCNAME[0]}" ] || [ "$DIFF" = true ]) && [ "$SUBRECURSIVE" = true ]; then
+ if { [ ! -f "$called_fn_dir/.${FUNCNAME[0]}" ] || [ "$DIFF" = true ]; } && [ "$SUBRECURSIVE" = true ]; then
if [[ $(cat .tmp/subs_no_resolved.txt | wc -l) -le 1000 ]]; then
start_subfunc "Running : Subdomains recursive search"
echo "" > .tmp/brute_recursive_wordlist.txt
@@ -515,7 +515,7 @@ function sub_recursive(){
}
function subtakeover(){
- if ([ ! -f "$called_fn_dir/.${FUNCNAME[0]}" ] || [ "$DIFF" = true ]) && [ "$SUBTAKEOVER" = true ]; then
+ if { [ ! -f "$called_fn_dir/.${FUNCNAME[0]}" ] || [ "$DIFF" = true ]; } && [ "$SUBTAKEOVER" = true ]; then
start_func "Looking for possible subdomain takeover"
touch .tmp/tko.txt
eval axiom-scan webs/webs.txt -m nuclei -w /home/op/recon/nuclei/takeovers/ -o .tmp/tko.txt $DEBUG_STD
@@ -523,7 +523,7 @@ function subtakeover(){
if [ "$NUMOFLINES" -gt 0 ]; then
notification "${NUMOFLINES} new possible takeovers found" info
fi
- end_func "Results are saved in webs/takeover.txt" ${FUNCNAME[0]}
+ end_func "Results are saved in $domain/webs/takeover.txt" ${FUNCNAME[0]}
else
if [ "$SUBTAKEOVER" = false ]; then
printf "\n${yellow} ${FUNCNAME[0]} skipped in this mode or defined in reconftw.cfg ${reset}\n"
@@ -534,26 +534,25 @@ function subtakeover(){
}
function zonetransfer(){
- if ([ ! -f "$called_fn_dir/.${FUNCNAME[0]}" ] || [ "$DIFF" = true ]) && [ "$ZONETRANSFER" = true ]
+ if { [ ! -f "$called_fn_dir/.${FUNCNAME[0]}" ] || [ "$DIFF" = true ]; } && [ "$ZONETRANSFER" = true ]; then
+ start_func "Zone transfer check"
+ eval python3 $tools/dnsrecon/dnsrecon.py -d $domain -a -j subdomains/zonetransfer.json $DEBUG_STD
+ if [ -s "subdomains/zonetransfer.json" ]
then
- start_func "Zone transfer check"
- eval python3 $tools/dnsrecon/dnsrecon.py -d $domain -a -j subdomains/zonetransfer.json $DEBUG_STD
- if [ -s "subdomains/zonetransfer.json" ]
- then
- if grep -q "\"zone_transfer\"\: \"success\"" subdomains/zonetransfer.json ; then notification "Zone transfer found on ${domain}!" info; fi
- fi
- end_func "Results are saved in subdomains/zonetransfer.txt" ${FUNCNAME[0]}
+ if grep -q "\"zone_transfer\"\: \"success\"" subdomains/zonetransfer.json ; then notification "Zone transfer found on ${domain}!" info; fi
+ fi
+ end_func "Results are saved in $domain/subdomains/zonetransfer.txt" ${FUNCNAME[0]}
+ else
+ if [ "$ZONETRANSFER" = false ]; then
+ printf "\n${yellow} ${FUNCNAME[0]} skipped in this mode or defined in reconftw.cfg ${reset}\n"
else
- if [ "$ZONETRANSFER" = false ]; then
- printf "\n${yellow} ${FUNCNAME[0]} skipped in this mode or defined in reconftw.cfg ${reset}\n"
- else
- printf "${yellow} ${FUNCNAME[0]} is already processed, to force executing ${FUNCNAME[0]} delete $called_fn_dir/.${FUNCNAME[0]} ${reset}\n\n"
- fi
+ printf "${yellow} ${FUNCNAME[0]} is already processed, to force executing ${FUNCNAME[0]} delete $called_fn_dir/.${FUNCNAME[0]} ${reset}\n\n"
+ fi
fi
}
function s3buckets(){
- if ([ ! -f "$called_fn_dir/.${FUNCNAME[0]}" ] || [ "$DIFF" = true ]) && [ "$S3BUCKETS" = true ]; then
+ if { [ ! -f "$called_fn_dir/.${FUNCNAME[0]}" ] || [ "$DIFF" = true ]; } && [ "$S3BUCKETS" = true ]; then
start_func "AWS S3 buckets search"
eval s3scanner scan --buckets-file subdomains/subdomains.txt $DEBUG_ERROR | grep -iv "not_exist" | anew -q .tmp/s3buckets.txt
#eval axiom-scan subdomains/subdomains.txt -m s3scanner -o .tmp/s3buckets.txt $DEBUG_STD
@@ -576,19 +575,21 @@ function s3buckets(){
###############################################################################################################
function webprobe_simple(){
- if ([ ! -f "$called_fn_dir/.${FUNCNAME[0]}" ] || [ "$DIFF" = true ]) && [ "$WEBPROBESIMPLE" = true ]; then
+ if { [ ! -f "$called_fn_dir/.${FUNCNAME[0]}" ] || [ "$DIFF" = true ]; } && [ "$WEBPROBESIMPLE" = true ]; then
start_subfunc "Running : Http probing"
if [ -s ".tmp/probed_tmp_scrap.txt" ]; then
mv .tmp/probed_tmp_scrap.txt .tmp/probed_tmp.txt
else
- eval axiom-scan subdomains/subdomains.txt -m httpx -follow-host-redirects -random-agent -threads $HTTPX_THREADS -status-code -timeout 15 -silent -retries 2 -no-color -o .tmp/probed_tmp_.txt $DEBUG_STD && cat .tmp/probed_tmp_.txt | cut -d ' ' -f1 | grep ".$domain$" | anew -q .tmp/probed_tmp.txt
- fi
- deleteOutScoped $outOfScope_file .tmp/probed_tmp.txt
- NUMOFLINES=$(eval cat .tmp/probed_tmp.txt $DEBUG_ERROR | anew webs/webs.txt | wc -l)
- end_subfunc "${NUMOFLINES} new websites resolved" ${FUNCNAME[0]}
- if [ "$PROXY" = true ] && [ -n "$proxy_url" ] && [[ $(cat webs/webs.txt| wc -l) -le 1500 ]]; then
- notification "Sending websites to proxy" info
- eval ffuf -mc all -w webs/webs.txt -u FUZZ -replay-proxy $proxy_url $DEBUG_STD
+ eval axiom-scan subdomains/subdomains.txt -m httpx -follow-host-redirects -random-agent -threads $HTTPX_THREADS -status-code -timeout $HTTPX_TIMEOUT -silent -retries 2 -no-color -o .tmp/probed_tmp_.txt $DEBUG_STD && cat .tmp/probed_tmp_.txt | cut -d ' ' -f1 | grep ".$domain$" | anew -q .tmp/probed_tmp.txt
+ fi
+ if [ -s ".tmp/probed_tmp_.txt" ]; then
+ deleteOutScoped $outOfScope_file .tmp/probed_tmp.txt
+ NUMOFLINES=$(eval cat .tmp/probed_tmp.txt $DEBUG_ERROR | anew webs/webs.txt | wc -l)
+ end_subfunc "${NUMOFLINES} new websites resolved" ${FUNCNAME[0]}
+ if [ "$PROXY" = true ] && [ -n "$proxy_url" ] && [[ $(cat webs/webs.txt| wc -l) -le 1500 ]]; then
+ notification "Sending websites to proxy" info
+ eval ffuf -mc all -w webs/webs.txt -u FUZZ -replay-proxy $proxy_url $DEBUG_STD
+ fi
fi
else
if [ "$WEBPROBESIMPLE" = false ]; then
@@ -624,11 +625,11 @@ function webprobe_full(){
}
function screenshot(){
- if ([ ! -f "$called_fn_dir/.${FUNCNAME[0]}" ] || [ "$DIFF" = true ]) && [ "$WEBSCREENSHOT" = true ]; then
+ if { [ ! -f "$called_fn_dir/.${FUNCNAME[0]}" ] || [ "$DIFF" = true ]; } && [ "$WEBSCREENSHOT" = true ]; then
start_func "Web Screenshots"
eval cat webs/webs.txt webs/webs_uncommon_ports.txt $DEBUG_ERROR | anew -q .tmp/webs_screenshots.txt
eval axiom-scan .tmp/webs_screenshots.txt -m gowitness -o screenshots $DEBUG_STD
- end_func "Results are saved in screenshots folder" ${FUNCNAME[0]}
+ end_func "Results are saved in $domain/screenshots folder" ${FUNCNAME[0]}
else
if [ "$WEBSCREENSHOT" = false ]; then
printf "\n${yellow} ${FUNCNAME[0]} skipped in this mode or defined in reconftw.cfg ${reset}\n"
@@ -643,10 +644,10 @@ function screenshot(){
###############################################################################################################
function favicon(){
- if ([ ! -f "$called_fn_dir/.${FUNCNAME[0]}" ] || [ "$DIFF" = true ]) && [ "$FAVICON" = true ]; then
+ if { [ ! -f "$called_fn_dir/.${FUNCNAME[0]}" ] || [ "$DIFF" = true ]; } && [ "$FAVICON" = true ]; then
start_func "Favicon Ip Lookup"
- cd $tools/fav-up
- eval python3 favUp.py -w $domain -sc -o favicontest.json $DEBUG_STD
+ cd "$tools/fav-up" || { echo "Failed to cd to $dir in ${FUNCNAME[0]} @ line ${LINENO}"; exit 1; }
+ eval python3 favUp.py -w "$domain" -sc -o favicontest.json $DEBUG_STD
if [ -f "favicontest.json" ]; then
cat favicontest.json | eval jq -r '.found_ips' $DEBUG_ERROR | grep -v "not-found" > favicontest.txt
sed -i "s/|/\n/g" favicontest.txt
@@ -654,7 +655,7 @@ function favicon(){
eval mv favicontest.txt $dir/hosts/favicontest.txt $DEBUG_ERROR
eval rm favicontest.json $DEBUG_ERROR
fi
- cd $dir
+ cd "$dir" || { echo "Failed to cd to $dir in ${FUNCNAME[0]} @ line ${LINENO}"; exit 1; }
end_func "Results are saved in hosts/favicontest.txt" ${FUNCNAME[0]}
else
if [ "$FAVICON" = false ]; then
@@ -823,7 +824,7 @@ function cms_scanner(){
}
function params(){
- if ([ ! -f "$called_fn_dir/.${FUNCNAME[0]}" ] || [ "$DIFF" = true ]) && [ "$PARAMS" = true ]; then
+ if { [ ! -f "$called_fn_dir/.${FUNCNAME[0]}" ] || [ "$DIFF" = true ]; } && [ "$PARAMS" = true ]; then
start_func "Parameter Discovery"
printf "${yellow}\n\n Running : Searching params with paramspider${reset}\n"
cat webs/webs.txt | sed -r "s/https?:\/\///" | anew -q .tmp/probed_nohttp.txt
@@ -842,7 +843,7 @@ function params(){
cp .tmp/param_tmp.txt webs/param.txt
fi
fi
- end_func "Results are saved in webs/param.txt" ${FUNCNAME[0]}
+ end_func "Results are saved in $domain/webs/param.txt" ${FUNCNAME[0]}
else
if [ "$PARAMS" = false ]; then
printf "\n${yellow} ${FUNCNAME[0]} skipped in this mode or defined in reconftw.cfg ${reset}\n"
@@ -853,7 +854,7 @@ function params(){
}
function urlchecks(){
- if ([ ! -f "$called_fn_dir/.${FUNCNAME[0]}" ] || [ "$DIFF" = true ]) && [ "$URL_CHECK" = true ]; then
+ if { [ ! -f "$called_fn_dir/.${FUNCNAME[0]}" ] || [ "$DIFF" = true ]; } && [ "$URL_CHECK" = true ]; then
start_func "URL Extraction"
mkdir -p js
eval axiom-scan webs/webs.txt -m waybackurls -o .tmp/url_extract_way_tmp.txt $DEBUG_STD && eval cat .tmp/url_extract_way_tmp.txt $DEBUG_ERROR | anew -q .tmp/url_extract_tmp.txt
@@ -888,7 +889,7 @@ function urlchecks(){
}
function url_gf(){
- if ([ ! -f "$called_fn_dir/.${FUNCNAME[0]}" ] || [ "$DIFF" = true ]) && [ "$URL_GF" = true ]; then
+ if { [ ! -f "$called_fn_dir/.${FUNCNAME[0]}" ] || [ "$DIFF" = true ]; } && [ "$URL_GF" = true ]; then
start_func "Vulnerable Pattern Search"
mkdir -p gf
gf xss webs/url_extract.txt | anew -q gf/xss.txt
@@ -900,7 +901,7 @@ function url_gf(){
gf potential webs/url_extract.txt | cut -d ':' -f3-5 |anew -q gf/potential.txt
cat .tmp/url_extract_tmp.txt | egrep -iv "\.(eot|jpg|jpeg|gif|css|tif|tiff|png|ttf|otf|woff|woff2|ico|pdf|svg|txt|js)$" | unfurl -u format %s://%d%p | anew -q gf/endpoints.txt
gf lfi webs/url_extract.txt | anew -q gf/lfi.txt
- end_func "Results are saved in gf folder" ${FUNCNAME[0]}
+ end_func "Results are saved in $domain/gf folder" ${FUNCNAME[0]}
else
if [ "$URL_GF" = false ]; then
printf "\n${yellow} ${FUNCNAME[0]} skipped in this mode or defined in reconftw.cfg ${reset}\n"
@@ -911,7 +912,7 @@ function url_gf(){
}
function url_ext(){
- if ([ ! -f "$called_fn_dir/.${FUNCNAME[0]}" ] || [ "$DIFF" = true ]) && [ "$URL_EXT" = true ]; then
+ if { [ ! -f "$called_fn_dir/.${FUNCNAME[0]}" ] || [ "$DIFF" = true ]; } && [ "$URL_EXT" = true ]; then
ext=("7z" "achee" "action" "adr" "apk" "arj" "ascx" "asmx" "asp" "aspx" "axd" "backup" "bak" "bat" "bin" "bkf" "bkp" "bok" "cab" "cer" "cfg" "cfm" "cfml" "cgi" "cnf" "conf" "config" "cpl" "crt" "csr" "csv" "dat" "db" "dbf" "deb" "dmg" "dmp" "doc" "docx" "drv" "email" "eml" "emlx" "env" "exe" "gadget" "gz" "html" "ica" "inf" "ini" "iso" "jar" "java" "jhtml" "json" "jsp" "key" "log" "lst" "mai" "mbox" "mbx" "md" "mdb" "msg" "msi" "nsf" "ods" "oft" "old" "ora" "ost" "pac" "passwd" "pcf" "pdf" "pem" "pgp" "php" "php3" "php4" "php5" "phtm" "phtml" "pkg" "pl" "plist" "pst" "pwd" "py" "rar" "rb" "rdp" "reg" "rpm" "rtf" "sav" "sh" "shtm" "shtml" "skr" "sql" "swf" "sys" "tar" "tar.gz" "tmp" "toast" "tpl" "txt" "url" "vcd" "vcf" "wml" "wpd" "wsdl" "wsf" "xls" "xlsm" "xlsx" "xml" "xsd" "yaml" "yml" "z" "zip")
echo "" > webs/url_extract.txt
for t in "${ext[@]}"; do
@@ -921,7 +922,7 @@ function url_ext(){
cat .tmp/url_extract_tmp.txt | egrep -i "\.(${t})($|\/|\?)" | sort -u >> webs/urls_by_ext.txt
fi
done
- end_func "Results are saved in webs/urls_by_ext.txt" ${FUNCNAME[0]}
+ end_func "Results are saved in $domain/webs/urls_by_ext.txt" ${FUNCNAME[0]}
else
if [ "$URL_EXT" = false ]; then
printf "\n${yellow} ${FUNCNAME[0]} skipped in this mode or defined in reconftw.cfg ${reset}\n"
@@ -932,14 +933,14 @@ function url_ext(){
}
function jschecks(){
- if ([ ! -f "$called_fn_dir/.${FUNCNAME[0]}" ] || [ "$DIFF" = true ]) && [ "$JSCHECKS" = true ]; then
+ if { [ ! -f "$called_fn_dir/.${FUNCNAME[0]}" ] || [ "$DIFF" = true ]; } && [ "$JSCHECKS" = true ]; then
start_func "Javascript Scan"
if [ -s "js/url_extract_js.txt" ]; then
printf "${yellow} Running : Fetching Urls 1/5${reset}\n"
cat js/url_extract_js.txt | cut -d '?' -f 1 | grep -iE "\.js$" | grep "$domain$" | anew -q js/jsfile_links.txt
cat js/url_extract_js.txt | subjs | grep "$domain$" | anew -q js/jsfile_links.txt
printf "${yellow} Running : Resolving JS Urls 2/5${reset}\n"
- eval axiom-scan js/jsfile_links.txt -m httpx -follow-redirects -random-agent -silent -timeout 15 -threads $HTTPX_THREADS -status-code -retries 2 -no-color -o .tmp/js_livelinks.txt $DEBUG_STD && cat .tmp/js_livelinks.txt | grep "[200]" | cut -d ' ' -f1 | anew -q js/js_livelinks.txt
+ eval axiom-scan js/jsfile_links.txt -m httpx -follow-redirects -random-agent -silent -timeout $HTTPX_TIMEOUT -threads $HTTPX_THREADS -status-code -retries 2 -no-color -o .tmp/js_livelinks.txt $DEBUG_STD && cat .tmp/js_livelinks.txt | grep "[200]" | cut -d ' ' -f1 | anew -q js/js_livelinks.txt
printf "${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
@@ -956,9 +957,9 @@ function jschecks(){
if [ -s "js/js_livelinks.txt" ]; then
cat js/js_livelinks.txt | eval python3 $tools/getjswords.py $DEBUG_ERROR | anew -q webs/dict_words.txt
fi
- end_func "Results are saved in js folder" ${FUNCNAME[0]}
+ end_func "Results are saved in $domain/js folder" ${FUNCNAME[0]}
else
- end_func "No JS urls found, function skipped" ${FUNCNAME[0]}
+ end_func "No JS urls found for $domain, function skipped" ${FUNCNAME[0]}
fi
else
if [ "$JSCHECKS" = false ]; then
@@ -970,7 +971,7 @@ function jschecks(){
}
function wordlist_gen(){
- if ([ ! -f "$called_fn_dir/.${FUNCNAME[0]}" ] || [ "$DIFF" = true ]) && [ "$WORDLIST" = true ]; then
+ if { [ ! -f "$called_fn_dir/.${FUNCNAME[0]}" ] || [ "$DIFF" = true ]; } && [ "$WORDLIST" = true ]; then
start_func "Wordlist generation"
cat .tmp/url_extract_tmp.txt | unfurl -u keys | sed 's/[][]//g' | sed 's/[#]//g' | sed 's/[}{]//g' | anew -q webs/dict_words.txt
cat .tmp/url_extract_tmp.txt | unfurl -u values | sed 's/[][]//g' | sed 's/[#]//g' | sed 's/[}{]//g' | anew -q webs/dict_words.txt
@@ -979,7 +980,7 @@ function wordlist_gen(){
cat .tmp/js_endpoints.txt | unfurl -u path | anew -q webs/dict_paths.txt
fi
cat .tmp/url_extract_tmp.txt | unfurl -u path | anew -q webs/dict_paths.txt
- end_func "Results are saved in webs/dict_[words|paths].txt" ${FUNCNAME[0]}
+ end_func "Results are saved in $domain/webs/dict_[words|paths].txt" ${FUNCNAME[0]}
else
if [ "$WORDLIST" = false ]; then
printf "\n${yellow} ${FUNCNAME[0]} skipped in this mode or defined in reconftw.cfg ${reset}\n"
@@ -1401,11 +1402,10 @@ function start(){
mkdir -p $called_fn_dir
fi
- cd $dir
- if [ ! -z "$domain" ]
- then
- echo $domain | anew -q target.txt
- list=${dir}/target.txt
+ cd "$dir" || { echo "Failed to cd directory in ${FUNCNAME[0]} @ line ${LINENO}"; exit 1; }
+ if [ -n "$domain" ]; then
+ echo "$domain" | anew -q target.txt
+ list="${dir}/target.txt"
fi
mkdir -p .tmp osint subdomains webs hosts vulns
@@ -1431,7 +1431,7 @@ function end(){
else
finaldir=$dir
fi
- global_end=`date +%s`
+ global_end=$(date +%s)
getElapsedTime $global_start $global_end
printf "${bgreen}#######################################################################${reset}\n"
text="${bred} Finished Recon on: ${domain} under ${finaldir} in: ${runtime} ${reset}\n"