Skip to content

enhance cdn flag to return cdn name instead of boolean result #492

Closed

Description

@ehsandeep

Please describe your feature request:

chaos -d hackerone.com -silent | httpx -silent -cdn
https://mta-sts.managed.hackerone.com
- https://www.hackerone.com [cdn]
https://mta-sts.forwarding.hackerone.com
https://mta-sts.hackerone.com
- https://api.hackerone.com [cdn]
- https://support.hackerone.com [cdn]
https://gslink.hackerone.com
https://resources.hackerone.com
https://docs.hackerone.com
chaos -d hackerone.com -silent | httpx -silent -cdn
https://mta-sts.managed.hackerone.com
+ https://www.hackerone.com [cloudflare]
https://mta-sts.forwarding.hackerone.com
https://mta-sts.hackerone.com
+ https://api.hackerone.com [cloudflare]
+ https://support.hackerone.com [cloudflare]
https://gslink.hackerone.com
https://resources.hackerone.com
https://docs.hackerone.com

This requires changes in https://github.com/projectdiscovery/cdncheck

Activity

  1. added
    Type: Enhancement
    Priority: Medium
    on Jan 13, 2022
  2. brenocss commented on Jan 14, 2022

    @brenocss

    The best of all worlds would be to have both fields in json that says if belongs to a cdn and the name of that cdn

    echo 'hackerone.com' | httpx -cdn -cdn-title
    https://api.hackerone.com [cloudflare]
    echo 'hackerone.com' | httpx -cdn -json
    {
      "cdn":true||false,
      "cdn_title": "cloudflare"
    }
  3. self-assigned this
    on Jan 15, 2022
  4. linked a pull request that will close this issueExpose CDN Name in output and json #499on Jan 15, 2022
  5. added
    Status: Completed
    on Feb 7, 2022
  6. added this to the v1.2.0 milestone on Mar 1, 2022
  7. linked a pull request that will close this issuev1.2.0 Release #532on Mar 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Priority: MediumStatus: CompletedType: Enhancement

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions