explaingit

power-codes/scanner-ip-cdns

Analysis updated 2026-06-24

38PythonAudience · ops devopsComplexity · 2/5LicenseSetup · easy

TLDR

Python CLI that scans a mixed list of IPs, domains, and CIDR ranges over TCP and groups the live hosts by CDN provider for use in tunneling setups.

Mindmap

mindmap
  root((Scanner-IP-CDNs))
    Inputs
      targets.txt
      IPs domains CIDRs
    Outputs
      Per CDN result files
      Status panel
    Use Cases
      Find live CDN IPs
      Filter for clean hosts
      Tunnel endpoint discovery
    Tech Stack
      Python
      Requests
      Flask
      Threads
Click or tap to explore — scroll the page freely

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

What do people build with it?

USE CASE 1

Scan a list of CIDR ranges and keep only IPs that answer on TCP

USE CASE 2

Bucket live IPs by CDN provider like Cloudflare, Fastly, or ArvanCloud

USE CASE 3

Build a clean endpoint list for VPN or tunnel configurations

USE CASE 4

Run a quick reachability check from Termux on a phone over VPN

What is it built with?

PythonRequestsFlaskThreading

How does it compare?

power-codes/scanner-ip-cdnstg12/phantomstarsyihaohu0118/seal
Stars383838
LanguagePythonPythonPython
Setup difficultyeasyeasyhard
Complexity2/53/55/5
Audienceops devopsops devopsresearcher

Figures from each repo's GitHub metadata at analysis time.

How do you get it running?

Difficulty · easy Time to first run · 5min

README assumes some users need a VPN active before pip install because of regional mirror blocks.

MIT lets you do almost anything with the code as long as you keep the copyright notice.

In plain English

Scanner IP CDNs, also called Powercodes Advanced IP and Domain Scanner, is a Python command line tool written in Persian. Its job is to take a list of IP addresses, domains, or network ranges and find the ones that are actually reachable on TCP, then sort them by which content delivery network they belong to. The README explains that many addresses still answer regular ping but block the TCP ports you need for real connections, so a normal ping sweep produces a misleading list of working hosts. The tool works at the transport layer. It opens TCP connections in parallel using Python threads and keeps the addresses that actually accept the connection. The README claims this gives you a list of clean addresses you can use for tunnels and other connections. Input goes into a targets.txt file next to the script. The format it understands includes single IPs like 1.1.1.1, full domains like example.com, and CIDR ranges like 172.67.0.0/16 or 104.16.0.0/12, all mixed in the same file. It also tries to identify which CDN each working IP belongs to. The README lists detection for Cloudflare, Akamai, Fastly, Netlify, Vercel, Gcore, AWS CloudFront, BunnyCDN, and the Iranian provider ArvanCloud. Results are written into separate output files by CDN. Installation is straightforward. On Windows or Linux you clone the repo, install dependencies with pip install -r requirements.txt, then run python scanner.py. The README also documents Termux on Android: it asks the user to switch on a VPN before installing dependencies, which suggests the typical audience is in a region where pip mirrors are blocked. Dependencies are requests and flask, the latter for a status panel. The tool is MIT licensed and the README points to a Telegram channel and YouTube tutorial run by the author.

Copy-paste prompts

Prompt 1
Read scanner.py and show me how to raise the thread pool size for faster scans of a /12 range.
Prompt 2
Help me add detection for a new CDN like KeyCDN to Scanner-IP-CDNs.
Prompt 3
Generate a Dockerfile that runs this scanner with targets.txt mounted as a volume.
Prompt 4
Show me how to plug the output files into a script that picks the fastest IP per CDN by latency.
Prompt 5
Explain how the CIDR expansion works and whether very large ranges are streamed or loaded into memory.

Frequently asked questions

What is scanner-ip-cdns?

Python CLI that scans a mixed list of IPs, domains, and CIDR ranges over TCP and groups the live hosts by CDN provider for use in tunneling setups.

What language is scanner-ip-cdns written in?

Mainly Python. The stack also includes Python, Requests, Flask.

What license does scanner-ip-cdns use?

MIT lets you do almost anything with the code as long as you keep the copyright notice.

How hard is scanner-ip-cdns to set up?

Setup difficulty is rated easy, with roughly 5min to a first successful run.

Who is scanner-ip-cdns for?

Mainly ops devops.

Open on GitHub → Explain another repo

This repo across BitVibe Labs

Verify against the repo before relying on details.