0xCloudFlare is a collection of shell scripts designed to automate interactions with Cloudflare's API, facilitating tasks such as downloading zone lockdown IPs, retrieving DNS entries, and obtaining OWASP rule sets.
- Retrieve all IP addresses associated with zone lockdowns.
- Fetch DNS entries for all assets within a Cloudflare account.
- Download the OWASP rule set for web application firewall configurations.
- Purpose: Retrieves all IP addresses associated with zone lockdowns in your Cloudflare account.
- Usage: Helps in auditing and managing IP restrictions applied to your zones.
- Purpose: Fetches DNS entries for all assets (domains) managed under your Cloudflare account.
- Usage: Useful for inventory management and DNS record auditing.
- Purpose: Downloads the OWASP rule set configured in your Cloudflare account.
- Usage: Assists in reviewing and managing web application firewall (WAF) rules based on OWASP standards.
-
Clone the repository:
git clone https://github.com/0xDTC/0xCloudFlare.git cd 0xCloudFlare
-
Ensure the scripts have execute permissions:
chmod +x Download_All_The_Zone_Lockdown_IPs.sh chmod +x Download_DNS_Entries_Of_All_Assets.sh chmod +x Download_Rule_set_of_OWASP.sh
-
Install dependencies: Ensure you have
curl
andjq
installed:- For Debian/Ubuntu:
sudo apt-get install curl jq
- For CentOS/RHEL:
sudo yum install curl jq
- For macOS:
brew install curl jq
- For Debian/Ubuntu:
Before using the scripts, export the necessary environment variables for Cloudflare API access:
export CLOUDFLARE_API_TOKEN=your_api_token
export CLOUDFLARE_ACCOUNT_ID=your_account_id
Use Download_All_The_Zone_Lockdown_IPs.sh
to retrieve all IP addresses associated with zone lockdowns.
./Download_All_The_Zone_Lockdown_IPs.sh
Output: A list of IP addresses in JSON format associated with your zone lockdowns.
Use Download_DNS_Entries_Of_All_Assets.sh
to fetch DNS entries for all assets.
./Download_DNS_Entries_Of_All_Assets.sh
Output: A JSON-formatted list of DNS entries for all your domains.
Use Download_Rule_set_of_OWASP.sh
to download the OWASP rule set.
./Download_Rule_set_of_OWASP.sh
Output: The OWASP rule set in JSON format as configured in your Cloudflare account.
Contributions are welcome! Follow these steps to contribute:
- Fork the repository.
- Create a feature branch:
git checkout -b feature/your-feature
- Commit your changes:
git commit -m "Add your feature"
- Push to your branch:
git push origin feature/your-feature
- Create a pull request.
0xCloudFlare is intended for educational and authorized use only. Ensure you have the necessary permissions to access and manage the Cloudflare account and resources. The authors are not responsible for any misuse of these scripts.
For any questions or feedback, feel free to open an issue or contact the repository owner.