Skip to content

High-performance Cloudflare intelligence toolkit. Detect CF protection, discover origin IPs, generate favicon hashes for Shodan. Written in Zig.

License

Notifications You must be signed in to change notification settings

copyleftdev/unflare

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

13 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

unflare logo

unflare

CI Zig 0.14 License: MIT

A high-performance Cloudflare intelligence toolkit written in Zig. Zero external dependencies, single static binary.


๐Ÿชถ Small & safe. In an era of 100MB+ Electron apps and bloated runtimes, we believe powerful tools should have a small footprint. Built with Zig and the incredible work of @andrewrk.


Features

Command Description
detect Multi-signal Cloudflare detection with confidence scoring
probe Detailed HTTP response analysis with header highlighting
trace Parse /cdn-cgi/trace endpoint data
origin Discover origin IPs via subdomain enumeration
favicon Generate MMH3 hashes for Shodan/Censys hunting
ipcheck Check IPs against CDN/WAF ranges

Installation

Quick Install (Linux/macOS)

curl -sSL https://raw.githubusercontent.com/copyleftdev/unflare/main/install.sh | bash

Homebrew (macOS/Linux)

brew tap copyleftdev/tap
brew install unflare

Arch Linux (AUR)

yay -S unflare
# or
paru -S unflare

Nix

nix run github:copyleftdev/unflare
# or add to flake inputs

Scoop (Windows)

scoop bucket add unflare https://github.com/copyleftdev/unflare
scoop install unflare

Pre-built Binaries

Download from Releases:

Platform Binary
Linux x86_64 unflare-linux-x86_64
macOS Intel unflare-macos-x86_64
macOS Apple Silicon unflare-macos-aarch64

From Source

Requires Zig 0.14+.

git clone https://github.com/copyleftdev/unflare.git
cd unflare
zig build -Doptimize=ReleaseSafe
./zig-out/bin/unflare --help

Quick Start

# Detect Cloudflare
unflare detect cloudflare.com

# Find origin IPs behind Cloudflare
unflare origin example.com

# Get favicon hash for Shodan hunting
unflare favicon github.com

# Check if IPs are CDN/WAF protected
unflare ipcheck 104.16.1.1 8.8.8.8

Examples

Cloudflare Detection

$ unflare detect cloudflare.com

โ•ญโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ Cloudflare Detection โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ•ฎ
โ”‚   Target        cloudflare.com                                      โ”‚
โ”‚   Status        โœ“ CLOUDFLARE DETECTED                               โ”‚
โ”‚   Confidence    75%                                                 โ”‚
โ”‚   Signals       4 detected                                          โ”‚
โ•ฐโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ•ฏ
  Datacenter: LAX (Los Angeles, US)

Origin Discovery

$ unflare origin example.com

โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚ Target Analysis                                                 โ”‚
โ”œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ค
โ”‚ Target IP:      104.16.132.229                                  โ”‚
โ”‚ Status:         โœ“ Behind Cloudflare                             โ”‚
โ”‚ Subdomains:     35 checked                                      โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜

๐ŸŽฏ Potential Origin IPs (2 found):
โ”‚ 192.168.1.100    โ”‚ mail.example.com     โ”‚   80%       โ”‚

Favicon Hash for Shodan

$ unflare favicon github.com

โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚ Favicon Analysis                                                โ”‚
โ”œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ค
โ”‚ MMH3 Hash:      1848946384                                      โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜

Search Queries:
  Shodan:  http.favicon.hash:1848946384

Contributing

See CONTRIBUTING.md for guidelines on:

  • Submitting issues and bug reports
  • Code style and architecture guidelines
  • Pull request process

Legal

This tool is for authorized security testing only. Always obtain proper authorization before testing third-party infrastructure.

License

MIT

About

High-performance Cloudflare intelligence toolkit. Detect CF protection, discover origin IPs, generate favicon hashes for Shodan. Written in Zig.

Topics

Resources

License

Contributing

Stars

Watchers

Forks

Packages

No packages published

Languages