Git Product home page Git Product logo

cf-check's Introduction

cf-check

Check an Host is Owned by CloudFlare.

Install

  1. Grab from releases page, or
  2. If you have Go1.18+ compiler installed & configured:
$ go install github.com/dwisiswant0/cf-check@latest

Usage

$ echo "uber.com" | cf-check
34.98.127.226

or

$ cf-check -d <FILE>

Flags

$ cf-check -h
Usage of cf-check:
  -c int
        Set the concurrency level (default: 20)
  -cf
        Show CloudFlare only
  -d    Print domains instead of IP addresses

Workaround

The goal is that you don't need to do a port scan if it's proven that the IP is owned by Cloudflare.

$ subfinder -silent -d uber.com | filter-resolved | cf-check -d | anew | naabu -silent -verify | httpx -silent

License

cf-check is distributed under Apache License 2.0.

cf-check's People

Contributors

dwisiswant0 avatar github-actions[bot] avatar six2dez 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  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  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

cf-check's Issues

Throwing some error while using on raspi(aarch64)

Hi team,
I have tried installing this tool every way, but at last its throwing me an error while running.i am on the latest version of this tool. i am running this tool on my raspi(aarch64) tried building the project in raspi too but didn't worked.

panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x79 pc=0x83808]

goroutine 1 [running]:
bufio.(*Scanner).Scan(0x0, 0x140b78)
        /snap/go/7018/src/bufio/scan.go:136 +0x28
main.main()
        /root/mytools/tools/cf-check-1.0.2/main.go:63 +0x320

Thanks in advance!

macOS support

Do you have plan to support macOS as well?
When I run it, I get:
zsh: exec format error: cf-check

[Suggestion] Check for Cloudflare Proxy on a Website

Description

Some website doesn't use cloudflare IP but it's uses Cloudflare Proxy. The target: Add an ability to make url (that has Cloudflare Proxy) part of -cf or cloudflare group.

Example

URL : bt21club.com
IP : 23.227.38.32

It has Cloudflare Proxy turned on and can be used as normal Remote Proxy.

Request for a feature

Hey, is that possible to fetch the fresh Cloudflare IP's and then work on that.I am doing the same thing in bash but i think go will work fast when there are large dataset of IP's

curl http://d7uri8nf7uskq.cloudfront.net/tools/list-cloudfront-ips | jq | grep -oE "\"[0-9].*\"" | cut -d"\"" -f2 >> ranges.txt
grepcidr -v -f ranges.txt ip.txt | sort -u > validip.txt
rm ranges.txt

installing issue

go get -u -v github.com/dwisiswant0/cf-check command not working.

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.