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
iisshortname
six2dezd3e6c85482c4
diff --git a/install.sh b/install.shindex 512389e..5c8c4cf 100755--- a/install.sh+++ b/install.sh@@ -71,6 +71,7 @@ gotools["mantra"]="go install -v github.com/MrEmpy/mantra@latest"gotools["crt"]="go install -v github.com/cemulus/crt@latest"gotools["s3scanner"]="go install -v github.com/sa7mon/s3scanner@latest"gotools["nmapurls"]="go install -v github.com/sdcampbell/nmapurls@latest"+gotools["shortscan"]="go install -v github.com/bitquark/shortscan/cmd/shortscan@latest"# Declaring repositories and their pathsdeclare -A reposdiff --git a/reconftw.cfg b/reconftw.cfgindex 018c003..6479220 100644--- a/reconftw.cfg+++ b/reconftw.cfg@@ -110,6 +110,7 @@ URL_GF=true # Url patterns classificationURL_EXT=true # Returns a list of files divided by extensionJSCHECKS=true # JS analysisFUZZ=true # Web fuzzing+IIS_SHORTNAME=trueCMS_SCANNER=true # CMS scannerWORDLIST=true # Wordlist generationROBOTSWORDLIST=true # Check historic disallow entries on waybackMachinediff --git a/reconftw.sh b/reconftw.shindex 8a4abad..be7773b 100755--- a/reconftw.sh+++ b/reconftw.sh@@ -383,6 +383,10 @@ function tools_installed() {printf "${bred} [*] porch-pirate [NO]${reset}\n"allinstalled=false}+ command -v shortscan &>/dev/null || {+ printf "${bred} [*] shortscan [NO]${reset}\n"+ allinstalled=false+ }if [[ ${allinstalled} == true ]]; thenprintf "${bgreen} Good! All installed! ${reset}\n\n"else@@ -1673,6 +1677,29 @@ function fuzz() {}+function iishortname() {++ if { [[ ! -f "$called_fn_dir/.${FUNCNAME[0]}" ]] || [[ $DIFF == true ]]; } && [[ $IIS_SHORTNAME == true ]]; then+ start_func ${FUNCNAME[0]} "IIS Shortname Scanner"+ [ -s "nuclei_output/info.txt" ] && cat nuclei_output/info.txt | grep "iis-version" | cut -d " " -f4 > .tmp/iis_sites.txt+ if [[ -s ".tmp/iis_sites.txt" ]]; then+ mkdir -p $dir/vulns/iis-shortname/+ interlace -tL .tmp/iis_sites.txt -threads ${INTERLACE_THREADS} -c "shortscan _target_ -F -s -p 1 > _output_/_cleantarget_.txt" -o $dir/vulns/iis-shortname/ 2>>"$LOGFILE" >/dev/null+ find $dir/vulns/iis-shortname/ -type f -print0 | xargs --null grep -Z -L 'Vulnerable: Yes' | xargs --null rm+ end_func "Results are saved in vulns/iis-shortname/" ${FUNCNAME[0]}+ else+ end_func "No IIS sites detected, iishortname check skipped " ${FUNCNAME[0]}+ fi+ else+ if [[ $IIS_SHORTNAME == 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\n $called_fn_dir/.${FUNCNAME[0]} ${reset}\n\n"+ fi+ fi++}+function cms_scanner() {if { [[ ! -f "$called_fn_dir/.${FUNCNAME[0]}" ]] || [[ $DIFF == true ]]; } && [[ $CMS_SCANNER == true ]]; then@@ -3052,6 +3079,7 @@ function recon() {waf_checksnuclei_checkfuzz+ iishortnameurlchecksjschecks@@ -3224,6 +3252,7 @@ function multi_recon() {}loopstart=$(date +%s)fuzz+ iishortnameurlchecksjscheckscurrently=$(date +"%H:%M:%S")@@ -3309,6 +3338,7 @@ function webs_menu() {nuclei_checkcms_scannerfuzz+ iishortnameurlchecksjschecksurl_gf