Skip to content

Commit

Permalink
Create chaoshunt.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
lamcodeofpwnosec authored Oct 18, 2024
1 parent 1fec5e9 commit 186b348
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions chaoshunt.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
#!/bin/bash
# Script Name: chaos_target_hunter.sh
# Description: This script automates the process of retrieving target data from the Chaos project by ProjectDiscovery.
# It downloads the index file, fetches the URLs for target data, unzips the downloaded archives,
# and consolidates the results into a single file containing all the targets.
# Author: lmcodeofpwnosec
# Date: 18/10/2024

# Download the index file from the Chaos project
wget "https://chaos-data.projectdiscovery.io/index.json"

# Extract the URLs from the index file and download the corresponding zip files
cat index.json | grep "URL" | sed 's/"URL": "//;s/",//' | while read -r host; do
wget "$host"
done

# Unzip all downloaded .zip files
for archive in *.zip; do
unzip "$archive"
done

# Clean up by removing the zip files
rm -f *.zip

# Consolidate all .txt files into a single file named alltargets.txt
cat *.txt >> alltargets.txt

# Inform the user that the process is complete
echo "Hunting complete. The consolidated results are saved in alltargets.txt"

0 comments on commit 186b348

Please sign in to comment.