/cut-cdn

✂️ Removing CDN IPs from the list of IP addresses

Primary LanguageGoMIT LicenseMIT

Removing CDN IPs from the list of IP addresses

CDN ProvidersInstallUsage ParametersPreviewUsageContact me


The tool's basic functionality would involve taking the list of IP addresses as input and then checking to determine whether the IP is behind a CDN. This tool will gather all CIDR of the most-known CDN providers and check your provided list with them. This is a handy tool for bug hunters.

CDN Providers

  • Akamai
  • Amazon
  • Arvancloud
  • Azure CDN
  • Bing
  • CacheFly
  • CafeBazaar (sotoon)
  • CDNetworks
  • Cloudflare
  • Cloudfront
  • DDoS Guard
  • Digitalocean
  • Fastly
  • Google cloud
  • Imperva
  • Incapsula
  • Leaseweb
  • Maxcdn
  • Oracle
  • Qrator
  • StackPath
  • StormWall
  • Sucuri
  • X4B

Installation

go install github.com/ImAyrix/cut-cdn@latest

Usage Parameters

  -c string
        Use cache file (offline) [Path]
  -i string
        Input [Filename | IP]
  -o string
        Output [Filename] (default "terminal")
  -s string
        Save all cidr [Path]
  -silent
        show only IPs in output
  -t int
        Number Of Thread [Number] (default 1)
  -version
        show version of cut-cdn

Preview

cut-cdn

Usage

Online mode

Check your IP list with the latest IP ranges of CDN providers:

  • Single IP
    cut-cdn -i 127.0.0.1
    echo "127.0.0.1" | cut-cdn
  • List of IPs
    cut-cdn -i allIP.txt
    cat allIP.txt | cut-cdn
  • To store results use -o option
    cut-cdn -i allIP.txt -o output.txt
  • To set concurrency use -t option (Default is 1)
    cut-cdn -i allIP.txt -o output.txt -t 20

Offline mode

  1. To check IPs in offline mode you should save CDNs IP ranges in a file
    cut-cdn -s allCIDR.txt
  2. After that you can run it in offline mode by -c pointing to the CIDR file
    cut-cdn -i allIP.txt -o output.txt -t 20 -c allCIDR.txt