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

Small fixes

six2dezb8009672303c
diff --git a/install.sh b/install.sh
index 11fbeb7..b6507f1 100755
--- a/install.sh
+++ b/install.sh
@@ -71,14 +71,14 @@ else
SUDO="sudo"
fi
-printf "\n\n${bgreen}#######################################################################\n"
+printf "\n\n${bgreen}#######################################################################${reset}\n"
printf "${bgreen} reconFTW installer/updater script ${reset}\n\n"
printf "${yellow} This may take time. So, go to grab a coffee! ${reset}\n\n"
install_apt(){
eval $SUDO apt update -y $DEBUG_STD
eval $SUDO apt install chromium-browser -y $DEBUG_STD
eval $SUDO apt install chromium -y $DEBUG_STD
- eval $SUDO apt install python3 python3-pip ruby git curl libpcap-dev wget python-dev python3-dev python3-dnspython pv dnsutils build-essential libssl-dev libffi-dev libxml2-dev libxslt1-dev zlib1g-dev nmap jq python3-shodan apt-transport-https lynx tor -y $DEBUG_STD
+ eval $SUDO apt install python3 python3-pip ruby git curl libpcap-dev wget python3-dev python3-dnspython pv dnsutils build-essential libssl-dev libffi-dev libxml2-dev libxslt1-dev zlib1g-dev nmap jq python3-shodan apt-transport-https lynx tor medusa -y $DEBUG_STD
eval $SUDO systemctl enable tor $DEBUG_STD
}
@@ -87,7 +87,7 @@ install_yum(){
}
install_pacman(){
- eval $SUDO pacman -Sy install python python-pip dnsutils ruby curl git libpcap nmap chromium wget jq xorg-server-xvfb tor lynx -y $DEBUG_STD
+ eval $SUDO pacman -Sy install python python-pip dnsutils ruby curl git libpcap nmap chromium wget jq medusa tor lynx -y $DEBUG_STD
eval $SUDO systemctl enable --now tor.service $DEBUG_STD
}
@@ -235,4 +235,4 @@ eval strip -s $HOME/go/bin/* $DEBUG_STD
printf "${yellow} Remember set your api keys:\n - amass (~/.config/amass/config.ini)\n - subfinder (~/.config/subfinder/config.yaml)\n - GitHub (~/Tools/.github_tokens)\n - SHODAN (SHODAN_API_KEY in reconftw.cfg)\n - SSRF Server (COLLAB_SERVER in reconftw.cfg) \n - Blind XSS Server (XSS_SERVER in reconftw.cfg) \n - theHarvester (~/Tools/theHarvester/api-keys.yml)\n - H8mail (~/Tools/h8mail_config.ini)\n\n${reset}"
printf "${bgreen} Finished!${reset}\n\n"
-printf "\n\n${bgreen}#######################################################################\n"
+printf "\n\n${bgreen}#######################################################################${reset}\n"
diff --git a/reconftw.sh b/reconftw.sh
index 5d0f7ce..887336c 100755
--- a/reconftw.sh
+++ b/reconftw.sh
@@ -23,7 +23,7 @@ function banner(){
function tools_installed(){
- printf "\n\n${bgreen}#######################################################################\n"
+ printf "\n\n${bgreen}#######################################################################${reset}\n"
printf "${bblue} Checking installed tools ${reset}\n\n"
allinstalled=true
@@ -1062,7 +1062,7 @@ function cors(){
start_func "CORS Scan"
eval python3 $tools/Corsy/corsy.py -i webs/webs.txt > webs/cors.txt $DEBUG_STD
eval cat webs/cors.txt $DEBUG_ERROR
- end_func "Results are saved in webs/cors.txt"
+ end_func "Results are saved in webs/cors.txt" ${FUNCNAME[0]}
else
if [ "$CORS" = false ]; then
printf "\n${yellow} ${FUNCNAME[0]} skipped in this mode or defined in reconftw.cfg ${reset}\n\n"
@@ -1090,7 +1090,7 @@ function open_redirect(){
end_func "Results are saved in vulns/redirect.txt" ${FUNCNAME[0]}
else
printf "${bred} Skipping Open redirects: Too Much URLs to test, try with --deep flag${reset}\n"
- printf "${bgreen}#######################################################################\n"
+ printf "${bgreen}#######################################################################${reset}\n"
fi
fi
else
@@ -1136,8 +1136,9 @@ function ssrf_checks(){
fi
fi
else
- printf "${bred}\n No COLLAB_SERVER defined\n"
- printf "${bgreen}#######################################################################\n"
+ notification "No COLLAB_SERVER defined" error
+ end_func "Skipping function" ${FUNCNAME[0]}
+ printf "${bgreen}#######################################################################${reset}\n"
fi
else
if [ "$SSRF_CHECKS" = false ]; then
@@ -1355,7 +1356,7 @@ function end_func(){
getElapsedTime $start $end
notification "${2} Finished in ${runtime}" info
printf "${bblue} ${1} ${reset}\n"
- printf "${bgreen}#######################################################################\n"
+ printf "${bgreen}#######################################################################${reset}\n"
}
function start_subfunc(){
@@ -1462,10 +1463,10 @@ function end(){
fi
global_end=`date +%s`
getElapsedTime $global_start $global_end
- printf "${bgreen}#######################################################################\n"
+ printf "${bgreen}#######################################################################${reset}\n"
text="${bred} Finished Recon on: ${domain} under ${finaldir} in: ${runtime} ${reset}\n"
printf "${text}" && printf "${text}" | $NOTIFY
- printf "${bgreen}#######################################################################\n"
+ printf "${bgreen}#######################################################################${reset}\n"
#Seperator for more clear messges in telegram_Bot
echo "****** Stay safe 🦠 and secure 🔐 ******" | $NOTIFY
}