Skip to main content

geoflag

geoflag fingerprints the Web Application Firewall (WAF) in front of a website, and — for sites you own — measures how much traffic that site can sustain before it starts to degrade. The command is link.

It is dependency-free (standard library only) and ships ready for PyPI.

link example.com
[*] Checking https://example.com
[+] The site https://example.com is behind Cloudflare (Cloudflare Inc.).
[~] Number of requests: 2

Install

pip install .
# or, once published:
pip install geoflag

This installs two equivalent console commands: link and geoflag.

WAF detection

link example.com            # detect the first matching WAF
link example.com -a         # list every matching signature
link example.com -k         # skip TLS verification
link example.com -y         # skip the authorization prompt (automation)
link --version              # show version and signature count

Every scan first asks a plain question — Are you authorized? (y/n) — and only continues when you answer y. Pass -y/--yes to skip it in scripts.

Detection sends one benign baseline request and one probe request that carries obvious attack markers (so a WAF has something to react to), then matches the responses against a database of public WAF fingerprints — Server headers, cookie names, response headers and block-page strings that products expose on purpose. If no known product matches but the site behaves differently under the probe, geoflag reports a generic/unknown WAF.

Capacity load test (your own sites only)

This answers: how many requests per second can my site comfortably serve?

link yoursite.com --loadtest
  • It first asks Are you authorized to test this target? (y/n) and only continues on y (pass -y/--yes for automation).
  • It ramps load up in stages instead of dumping it all at once.
  • At each stage it reports throughput (req/s), p50/p95 latency and error rate.
  • It stops the moment the site degrades — the point is to find the limit, not to keep hammering a struggling server.
  • It talks only to the single URL you give it.
[~] conc=5    rps=  420.0  p50=     11ms  p95=     18ms  errors=   0%
[~] conc=10   rps=  780.0  p50=     12ms  p95=     21ms  errors=   0%
...
[+] Peak throughput: 1850 requests/sec
[+] Comfortably sustained: ~1700 req/sec at 40 concurrent connections.
[~] Stopped at 55 concurrent: p95 latency 920ms exceeded 4x baseline (190ms).

Authorization

The load test (and every scan) asks Are you authorized? (y/n) before it runs and continues only when you answer y. Load-testing a site you do not own or have permission to test can be illegal — don't. Use -y/--yes to skip the prompt only in automation you control.

Tune the ramp:

link yoursite.com --loadtest \
     --start 10 --max 300 --step 10 --requests 200

Library use

from geoflag.detector import Detector
res = Detector("example.com").run()
print(res.detected)        # [("Cloudflare", "Cloudflare Inc."), ...]

from geoflag.loadtest import LoadTest, authorize
authorize("localhost:8000", asserted=True)
result = LoadTest("http://localhost:8000").run()
print(result.sustained_rps)

Project layout

geoflag/
  cli.py              # the `link` command
  detector/
    engine.py         # baseline + probe requests, signature matching
    signatures.py     # public WAF fingerprint database
  loadtest/
    runner.py         # staged capacity test
    authorization.py  # ownership / authorization gate
  utils/
    http.py           # stdlib HTTP wrapper
    output.py         # plain-text, wafw00f-style output

Scope

geoflag is a diagnostics and benchmarking tool. The detector is passive fingerprinting; the load test is a capacity benchmark gated behind an authorization check. It is not, and will not become, an attack tool.

License

MIT

Metadata

Release files for geoflag 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for geoflag 0.1.1
File Size Uploaded Provenance Actions
geoflag-0.1.1.tar.gz 19.3 kB Without provenance Details for geoflag-0.1.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for geoflag 0.1.1
File Interpreter ABI Platform Actions
geoflag-0.1.1-py3-none-any.whl Python 3 none any Details for geoflag-0.1.1-py3-none-any.whl

Total release size: 39.7 kB

Release files / geoflag-0.1.1.tar.gz

Download URL geoflag-0.1.1.tar.gz
Size 19.3 kB
Tags Source
SHA-256 checksum
How to use checksums
f696a867b5a7511d130a5b60433d666830a5684ec992501bc0f97cfc6ad80bb0
BLAKE2b-256 checksum
How to use checksums
d264baa594b9901dcb113e169a314589b9f486f0597e6644ef3dd47dfea17da4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.16

Release files / geoflag-0.1.1-py3-none-any.whl

Download URL geoflag-0.1.1-py3-none-any.whl
Size 20.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d22861832774fc61582db607fce3b43d1434dbcda7e19eab5c76429947eaf1a1
BLAKE2b-256 checksum
How to use checksums
0097d588106798b9c724b758af619d6423d81417782ecd76d78d81bd7c18befe
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.16

Security for geoflag 0.1.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page