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

cent integration

six2dez42a41d74e33a
diff --git a/install.sh b/install.sh
index c64baa1..d3288ee 100755
--- a/install.sh
+++ b/install.sh
@@ -77,6 +77,7 @@ declare -A gotools=(
["sourcemapper"]="go install -v github.com/denandz/sourcemapper@latest"
["jsluice"]="go install -v github.com/BishopFox/jsluice/cmd/jsluice@latest"
["urlfinder"]="go install -v github.com/projectdiscovery/urlfinder/cmd/urlfinder@latest"
+ ["cent"]="go install -v github.com/xm1k3/cent@latest"
)
# Declare pipx tools and their paths
@@ -311,6 +312,9 @@ function install_tools() {
notify &>/dev/null
subfinder &>/dev/null
subfinder &>/dev/null
+ mkdir -p ${NUCLEI_TEMPLATES_PATH} &>/dev/null
+ cent init -f &>/dev/null
+ cent -p ${NUCLEI_TEMPLATES_PATH} &>/dev/null
# Handle failed installations
if [[ ${#failed_tools[@]} -ne 0 ]]; then
@@ -535,15 +539,11 @@ function initial_setup() {
# Nuclei Templates
if [[ ! -d ${NUCLEI_TEMPLATES_PATH} ]]; then
#printf "${yellow}Cloning Nuclei templates...${reset}\n"
- eval git clone https://github.com/projectdiscovery/nuclei-templates.git "${NUCLEI_TEMPLATES_PATH}" $DEBUG_STD
- eval git clone https://github.com/geeknik/the-nuclei-templates.git "${NUCLEI_TEMPLATES_PATH}/extra_templates" $DEBUG_STD
eval git clone https://github.com/projectdiscovery/fuzzing-templates ${tools}/fuzzing-templates $DEBUG_STD
- eval nuclei -update-templates update-template-dir "${NUCLEI_TEMPLATES_PATH}" $DEBUG_STD
- else
- #printf "${yellow}Updating Nuclei templates...${reset}\n"
eval git -C "${NUCLEI_TEMPLATES_PATH}" pull $DEBUG_STD
eval git -C "${NUCLEI_TEMPLATES_PATH}/extra_templates" pull $DEBUG_STD
eval git -C "${tools}/fuzzing-templates" pull $DEBUG_STD
+ eval nuclei -update-templates update-template-dir "${NUCLEI_TEMPLATES_PATH}" $DEBUG_STD
fi
# sqlmap
diff --git a/reconftw.sh b/reconftw.sh
index ece2a97..db4115f 100755
--- a/reconftw.sh
+++ b/reconftw.sh
@@ -233,6 +233,7 @@ function tools_installed() {
["commix"]="commix"
["urless"]="urless"
["dnstake"]="dnstake"
+ ["cent"]="cent"
)
# Check for tool files
@@ -2224,6 +2225,8 @@ function subtakeover() {
cat webs/webs.txt webs/webs_uncommon_ports.txt 2>/dev/null | anew -q webs/webs_all.txt
fi
+ cent update -p ${NUCLEI_TEMPLATES_PATH} &>/dev/null
+
if [[ $AXIOM != true ]]; then
if ! nuclei -update 2>>"$LOGFILE" >/dev/null; then
printf "%b[!] Failed to update nuclei.%b\n" "$bred" "$reset"
@@ -3252,6 +3255,7 @@ function nuclei_check() {
if { [[ ! -f "$called_fn_dir/.${FUNCNAME[0]}" ]] || [[ $DIFF == true ]]; } && [[ $NUCLEICHECK == true ]]; then
start_func "${FUNCNAME[0]}" "Templates-based Web Scanner"
+ cent update -p ${NUCLEI_TEMPLATES_PATH} &>/dev/null
# Update nuclei templates
nuclei -update 2>>"$LOGFILE" >/dev/null
@@ -4995,6 +4999,8 @@ function fuzzparams() {
URL_COUNT=$(wc -l <"webs/url_extract_nodupes.txt")
if [[ $DEEP == true ]] || [[ $URL_COUNT -le $DEEP_LIMIT2 ]]; then
+ cent update -p ${NUCLEI_TEMPLATES_PATH} &>/dev/null
+
if [[ $AXIOM != true ]]; then
printf "${yellow}\n[$(date +'%Y-%m-%d %H:%M:%S')] Running: Nuclei Setup and Execution${reset}\n\n"