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

removed nuclei paths

kleoz325a2798a05d
diff --git a/reconftw.sh b/reconftw.sh
index 41d6a2a..2ed32cd 100755
--- a/reconftw.sh
+++ b/reconftw.sh
@@ -1814,78 +1814,6 @@ function nuclei_check() {
cat .tmp/webs_subs.txt .tmp/webs_fuzz.txt 2>>"$LOGFILE" | anew -q .tmp/webs_nuclei.txt | tee -a webs/webs_nuclei.txt
cp .tmp/webs_nuclei.txt webs/webs_nuclei.txt
- file_extensions=(
- # Web files
- "html" "htm" "xhtml" "php" "php3" "php4" "php5" "phtml" "asp" "aspx"
- "jsp" "jspx" "cgi" "cfm" "css" "scss" "less" "js" "ts" "jsx" "tsx"
- # Image files
- "jpg" "jpeg" "png" "gif" "bmp" "tif" "tiff" "svg" "webp" "ico" "psd"
- "ai" "eps" "img"
- # Audio files
- "mp3" "wav" "ogg" "m4a" "flac" "aac" "wma"
- # Video files
- "mp4" "mkv" "flv" "avi" "mov" "wmv" "webm" "ogv" "m4v"
- # Document files
- "txt" "rtf" "doc" "docx" "odt" "pdf" "xls" "xlsx" "ods" "csv" "ppt"
- "pptx" "odp"
- # Archive files
- "zip" "rar" "7z" "tar" "gz" "bz2"
- # Font files
- "ttf" "otf" "woff" "woff2" "eot"
- # Other common files
- "xml" "json" "yaml" "yml" "log" "ini" "conf" "config" "exe" "dll"
- "bin" "iso" "swf" "htc"
- )
-
- # Function to check if a string ends with a given file extension
- is_file() {
- local path="$1"
- for ext in "${file_extensions[@]}"; do
- if [[ "$path" == *.$ext ]]; then
- return 0 # True: path is a file
- fi
- done
- return 1 # False: path is not a file
- }
-
- process_url() {
- local url="$1"
- local parsed_url
- parsed_url=$(echo "$url" | awk -F/ '{print $1 "//" $3}') # Extract scheme and domain
- local path
- path=$(echo "$url" | awk -F/ '{for (i=4; i<=NF; i++) printf "/"$i} END {print ""}')
- local query
- query=$(echo "$url" | awk -F? '{print $2}')
-
- # Remove trailing slash from path if present
- path="${path%/}"
-
- urls=("$url")
-
- if ! is_file "$path" && [ -z "$query" ]; then
- IFS='/' read -ra parts <<< "$path"
- for i in "${!parts[@]}"; do
- partial_path="${parts[*]:0:$((i+1))}"
- urls+=("$parsed_url/$partial_path/")
- done
- else
- IFS='/' read -ra parts <<< "$path"
- for i in $(seq 1 $(( ${#parts[@]} - 1 ))); do
- partial_path="${parts[*]:0:$i}"
- urls+=("$parsed_url/$partial_path/")
- done
- fi
-
- for u in "${urls[@]}"; do
- echo "$u"
- done
- }
-
- # Process each URL in the input file
- while IFS= read -r url; do
- process_url "$url"
- done < "webs/webs_nuclei.txt" > "webs/webs_nuclei_paths.txt"
-
if [[ $AXIOM != true ]]; then # avoid globbing (expansion of *).
IFS=',' read -ra severity_array <<<"$NUCLEI_SEVERITY"
for crit in "${severity_array[@]}"; do