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
IIS with sns
six2dez912876758c5d
diff --git a/install.sh b/install.shindex 5c8c4cf..696e8c0 100755--- a/install.sh+++ b/install.sh@@ -72,6 +72,7 @@ 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"+gotools["sns"]="go install github.com/sw33tLie/sns@latest"# Declaring repositories and their pathsdeclare -A reposdiff --git a/reconftw.sh b/reconftw.shindex be7773b..7ee6978 100755--- a/reconftw.sh+++ b/reconftw.sh@@ -387,6 +387,10 @@ function tools_installed() {printf "${bred} [*] shortscan [NO]${reset}\n"allinstalled=false}+ command -v sns &>/dev/null || {+ printf "${bred} [*] sns [NO]${reset}\n"+ allinstalled=false+ }if [[ ${allinstalled} == true ]]; thenprintf "${bgreen} Good! All installed! ${reset}\n\n"else@@ -1683,9 +1687,12 @@ function iishortname() {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.txtif [[ -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+ mkdir -p $$dir/vulns/iis-shortname-shortscan/+ mkdir -p $$dir/vulns/iis-shortname-sns/+ interlace -tL .tmp/iis_sites.txt -threads ${INTERLACE_THREADS} -c "shortscan _target_ -F -s -p 1 > _output_/_cleantarget_.txt" -o $dir/vulns/iis-shortname-shortscan/ 2>>"$LOGFILE" >/dev/null+ find $dir/vulns/iis-shortname-shortscan/ -type f -print0 | xargs --null grep -Z -L 'Vulnerable: Yes' | xargs --null rm+ interlace -tL .tmp/iis_sites.txt -threads ${INTERLACE_THREADS} -c "sns -u _target_ > _output_/_cleantarget_.txt" -o $dir/vulns/iis-shortname-sns/ 2>>"$LOGFILE" >/dev/null+ find $dir/vulns/iis-shortname-sns/ -type f -print0 | xargs --null grep -Z 'Target is not vulnerable' | xargs --null rmend_func "Results are saved in vulns/iis-shortname/" ${FUNCNAME[0]}elseend_func "No IIS sites detected, iishortname check skipped " ${FUNCNAME[0]}