Giter VIP home page Giter VIP logo

cdn-ranges's Introduction

CDN Ranges

Tool to download a list of IP ranges used by CDNs (Cloudflare, Akamai, Incapsula, Fastly, etc). This helps to avoid performing unnecessary port scans when doing bug bounties.

This uses publicly available lists of IP ranges, provided by most providers, and BGPView to query IP ranges for ASNs.

This was heavily inspired by Project Discovery's cdncheck.

CDN Providers

Provider ASN or Public List
Akamai AS12222, AS16625
CacheFly https://cachefly.cachefly.net/ips/rproxy.txt
CDNetworks AS36408
Cloudflare https://www.cloudflare.com/ips-v4
CloudFront https://ip-ranges.amazonaws.com/ip-ranges.json
DDoS Guard AS57724
Fastly https://api.fastly.com/public-ip-list
Incapsula https://my.incapsula.com/api/integration/v1/ips
MaxCDN https://support.maxcdn.com/hc/en-us/article_attachments/360051920551/maxcdn_ips.txt
Qrator AS200449
StackPath AS12989
StormWall AS59796
Sucuri AS30148
X4B AS136165

If a provider is missing, please open an issue with a link to their IP ranges or ASN

Installation

This code requires Node.js 14.x or higher. I will be providing executables in the near future.

  1. Download code
git clone https://github.com/taythebot/cdn-ranges
  1. Install dependencies
npm install

Usage

Download ip ranges for all providers

node download --output ranges.txt

Download for a specific provider (lowercase and replace spaces with -)

node download --provider cloudflare

Dump in json format

node download --format json --output ranges.json

Dump in csv format (format: provider,range)

node download --format csv --output ranges.csv

Support Formats

  • txt (default)
  • json
  • csv

cdn-ranges's People

Contributors

taythebot avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

cdn-ranges's Issues

Akamai's IP address range appears to be partially uncovered.

For instance, Akamai uses 23.210.26.0/24 as a CDN range, but it was not included in the list.
I suspect this is because it's being distributed not under Akamai's AS12222, but AS20940, and that AS number is not being tracked.
It would be great if you could add AS20940.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.