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

added permutation flag into config for cloudhunter

kleoz7d08a700c096
diff --git a/reconftw.cfg b/reconftw.cfg
index a031957..aeb94b6 100644
--- a/reconftw.cfg
+++ b/reconftw.cfg
@@ -119,6 +119,7 @@ ROBOTSWORDLIST=true # Check historic disallow entries on waybackMachine
PASSWORD_DICT=true # Generate password dictionary
PASSWORD_MIN_LENGTH=5 # Min password length
PASSWORD_MAX_LENGTH=14 # Max password length
+CLOUDHUNTER_PERMUTATION=DEEP # Options: DEEP (very slow), NORMAL (slow), NONE
# Vulns
VULNS_GENERAL=false # Enable or disable the vulnerability module (very intrusive and slow)
diff --git a/reconftw.sh b/reconftw.sh
index 6f3ed35..8797909 100755
--- a/reconftw.sh
+++ b/reconftw.sh
@@ -1383,9 +1383,27 @@ function s3buckets() {
# Initialize the output file in the subdomains folder
> subdomains/cloudhunter_open_buckets.txt # Create or clear the output file
+ # Determine the CloudHunter permutations flag based on the config
+ PERMUTATION_FLAG=""
+ case "$CLOUDHUNTER_PERMUTATION" in
+ DEEP)
+ PERMUTATION_FLAG="-p ~/Tools/CloudHunter/permutations-big.txt"
+ ;;
+ NORMAL)
+ PERMUTATION_FLAG="-p ~/Tools/CloudHunter/permutations.txt"
+ ;;
+ NONE)
+ PERMUTATION_FLAG=""
+ ;;
+ *)
+ echo "Invalid value for CloudHunter_Permutations: $CloudHunter_Permutations" >> "$LOGFILE"
+ exit 1
+ ;;
+ esac
+
# Run CloudHunter on each URL in webs/full_webs.txt and append the output to the file in the subdomains folder
while IFS= read -r url; do
- python3 ~/Tools/CloudHunter/cloudhunter.py -p ~/Tools/CloudHunter/permutations-big.txt -r ~/Tools/CloudHunter/resolvers.txt -t 50 "$url" >> subdomains/cloudhunter_open_buckets.txt 2>>"$LOGFILE"
+ python3 ~/Tools/CloudHunter/cloudhunter.py $PERMUTATION_FLAG -r ~/Tools/CloudHunter/resolvers.txt -t 50 "$url" >> subdomains/cloudhunter_open_buckets.txt 2>>"$LOGFILE"
done < webs/full_webs.txt
# Remove the full_webs.txt file after CloudHunter processing