Obfuscation Tool: Flareprox

Reading Time: 2 Minutes
Flareprox
Simple IP Rotation & URL Redirection via Cloudflare Workers
Flareprox, developed by MrTurvey, is a tool that automatically deploys HTTP proxy endpoints on Cloudflare Workers for easy redirection of all traffic to any URL you specify. It supports all HTTP methods (GET, POST, PUT, DELETE, etc.) and provides IP masking through Cloudflare’s global network.
See Also: So you want to be a hacker?
Offensive Security and Ethical Hacking Course
Features
- HTTP Support: All HTTP methods (GET, POST, PUT, DELETE, PATCH, OPTIONS, HEAD)
- Simple URL Redirection: Provide any URL and FlareProx redirects traffic through Cloudflare
- Global Network: Leverage Cloudflare’s worldwide CDN infrastructure
- Free Tier: 100,000 requests per day on Cloudflare’s free plan
- Easy Deployment: Single command deployment and management
How it Works
FlareProx deploys Cloudflare Workers that act as HTTP proxies. When you make a request:
- Request Routing: Your request is sent to a FlareProx endpoint
- URL Extraction: The Worker extracts the target URL from query params or custom HTTP header
- Request Proxying: The Worker forwards your request to the target URL
- Response Relay: The target’s response is relayed back through Cloudflare
- IP Masking: Your original IP is masked by Cloudflare’s infrastructure
See Also: Offensive Security Tool: HExHTTP
Quick Start
Install Dependencies
git clone <repository-url> cd flareprox pip install -r requirements.txt
Configure Cloudflare Access
Run python3 fireprox.py config or directly edit flareprox.json in the project directory:
{ "cloudflare": { "api_token": "your_cloudflare_api_token", "account_id": "your_cloudflare_account_id" } }
Deploy Proxy Endpoints
# Create 2 proxy endpoints python3 flareprox.py create --count 2 # View deployed endpoints python3 flareprox.py list
Use Your Proxies
# Test all endpoints are functioning
python3 flareprox.py test
# Example per HTTP Method
# GET request
curl "https://your-worker.account.workers.dev?url=https://httpbin.org/get"
# POST request with data
curl -X POST -d "username=admin" "https://your-worker.account.workers.dev?url=https://httpbin.org/post"
# PUT request with JSON
curl -X PUT -d '{"username":"admin"}' -H "Content-Type: application/json" \
"https://your-worker.account.workers.dev?url=https://httpbin.org/put"
# DELETE request
curl -X DELETE "https://your-worker.account.workers.dev?url=https://httpbin.org/delete"
Each deployed FlareProx endpoint accepts requests in two formats:
# Query parameter curl "https://your-worker.account.workers.dev?url=https://httpbin.org/ip" # Custom header curl -H "X-Target-URL: https://httpbin.org/ip" https://your-worker.account.workers.dev
Proxy Cleanup
# Delete all proxy endpoints
python3 flareprox.py cleanup
Getting Cloudflare Credentials
Cloudflare Workers Setup
- Sign up at Cloudflare
- Go to API Tokens
- Click ‘Create Token’ and use the ‘Edit Cloudflare Workers’ template
- Set the ‘account resources’ and ‘zone resources’ to all. Click ‘Continue to Summary’
- Click ‘Create Token’ and copy the token and your Account ID from the dashboard
Programmatic Usage
FlareProx can be imported and used directly in your Python applications. Here’s how to send a POST request:
#!/usr/bin/env python3
from flareprox import FlareProx, FlareProxError
import json
# Initialize FlareProx
flareprox = FlareProx(config_file="flareprox.json")
# Check if configured
if not flareprox.is_configured:
print("FlareProx not configured. Run: python3 flareprox.py config")
exit(1)
# Create some endpoints if none exist
endpoints = flareprox.sync_endpoints()
if not endpoints:
print("Creating proxy endpoints...")
flareprox.create_proxies(count=2)
# Make a POST request through FlareProx
try:
# Prepare POST data
post_data = json.dumps({
"username": "testuser",
"message": "Hello from FlareProx!",
"timestamp": "2025-01-01T12:00:00Z"
})
headers = {
"Content-Type": "application/json",
"User-Agent": "FlareProx-Client/1.0"
}
# Send POST request via random FlareProx endpoint
response = flareprox.redirect_request(
target_url="https://httpbin.org/post",
method="POST",
headers=headers,
data=post_data
)
if response.status_code == 200:
result = response.json()
print(f"✓ POST successful via FlareProx")
print(f"Origin IP: {result.get('origin', 'unknown')}")
print(f"Posted data: {result.get('json', {})}")
else:
print(f"Request failed with status: {response.status_code}")
except FlareProxError as e:
print(f"FlareProx error: {e}")
except Exception as e:
print(f"Request error: {e}")
Use Cases
- API Development: Test APIs through different IP addresses
- Web Scraping: Route requests through Cloudflare’s network
- Security Testing: Mask your origin IP during testing
- Load Testing: Distribute requests across multiple endpoints
- Privacy: Add an extra layer between your requests and target servers
Clone the repo from here: GitHub Link