Add Cloudflare Support via FlareProx Integration#96
Open
dejisec wants to merge 2 commits intoknavesec:masterfrom
Open
Add Cloudflare Support via FlareProx Integration#96dejisec wants to merge 2 commits intoknavesec:masterfrom
dejisec wants to merge 2 commits intoknavesec:masterfrom
Conversation
- Updated config.json to include Cloudflare credentials. - Enhanced CredMaster to handle proxy provider selection (AWS or Cloudflare). - Implemented FlareProx class for managing Cloudflare Worker deployments. - Added error handling for Cloudflare API interactions. - Updated requirements.txt to include 'requests' library. - Modified utils to support Cloudflare-specific headers.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add Cloudflare Support via FlareProx Integration
Overview
This PR adds Cloudflare Workers support to CredMaster as an alternative to AWS FireProx for proxy passthrough operations. Users can now choose between AWS or Cloudflare as their proxy provider.
Key Changes
--proxy_provideracceptsaws(default) orcloudflare.Files
utils/flareprox.py: FlareProx implementation withCloudflareManager, worker lifecycle, subdomain handling, and robust error handling.credmaster.py: Provider selection, Cloudflare credential handling, FlareProx wiring.config.json: Addedproxy_providerandcloudflaresection (api_token,account_id,zone_id).requirements.txt: Addedrequests.utils/utils.py: Cloudflare-specific header support.README.md: Docs for Cloudflare setup and usage.New Features
config.json.Usage Examples
python3 credmaster.py --plugin {pluginname} --access_key {key} --secret_access_key {key} -u userfile -p passwordfile -a useragentfilepython3 credmaster.py --plugin {pluginname} --cf_api_token {api_token} --cf_account_id {account_id} -u userfile -p passwordfile -a useragentfile{ "proxy_provider": "cloudflare", "cloudflare": { "api_token": "your_api_token", "account_id": "your_account_id", "zone_id": "optional_zone_id" } }Technical Notes
requestsfor Cloudflare API calls.FlareProxErrorfor clearer failures.Credits
Thanks to @turvsec for FlareProx, which this integration leverages.
Testing