Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/compassvpn/cf-tools
/ functions
Functions
16 in github.com/compassvpn/cf-tools
⨍
Functions
16
◇
Types & classes
2
↓ 2 callers
Function
incrementIP
Returns ip advanced by increment, using plain IPv4 (uint32) math.
main.go:204
↓ 2 callers
Function
runChecker
Probes every prefix with check and writes the passing /24 blocks, sorted, to outputFile. The label only appears in the progress output.
main.go:453
↓ 1 callers
Function
convertTo24AndWrite
Expands the prefixes into unique, sorted /24 blocks and writes them to outputFile. The blocks are also returned so callers can reuse them without re-r
main.go:143
↓ 1 callers
Function
ephemeralKeypair
Generates a random ephemeral keypair.
main.go:290
↓ 1 callers
Function
fetchAndFilterPrefixes
Downloads the BGP table and returns the IPv4 prefixes that belong to one of the given ASNs.
main.go:98
↓ 1 callers
Function
initiateHandshake
Performs a WireGuard handshake with the server and returns the round-trip time on success.
main.go:316
↓ 1 callers
Function
prefixHasValidIP
Reports whether any sampled IP in the /24 passes check. The probes run concurrently, so it returns as soon as one of them succeeds.
main.go:248
↓ 1 callers
Function
processPrefix
Sends every /24 block inside prefix to out. Anything already /24 or smaller collapses to the single /24 that covers it.
main.go:190
↓ 1 callers
Function
run
()
main.go:506
↓ 1 callers
Function
servesCloudflareTrace
Reports whether url returns a real Cloudflare trace body. Checking the body, not just the 200 status, keeps an unrelated web server on the same IP fro
main.go:229
↓ 1 callers
Function
showHelp
()
main.go:87
↓ 1 callers
Function
staticKeypair
Builds a static keypair from a base64-encoded private key.
main.go:273
↓ 1 callers
Function
uint32ToBytes
Encodes n as little-endian bytes.
main.go:308
Function
isValidCDNIP
Reports whether ip serves a Cloudflare /cdn-cgi/trace response, retrying a few times before giving up.
main.go:213
Function
isValidWarpIP
Reports whether a WireGuard handshake with the WARP peer succeeds on any of the scanned ports.
main.go:436
Function
main
()
main.go:499