Skip to content

Please, add BodySHA256 match/filter #488

Closed

Description

@atlassion

Hi all! why not add option BodySHA256 match/filter ?
echo http://site/file.png | httpx | jq -Mcr '.["body-sha256"]'
pic.:
httpx -path /path/any_pic.png -msha sha256_HASH

or js :
httpx -path /path/any_file.js -msha sha256_HASH
etc

Activity

  1. added
    Type: Enhancement
    on Jan 11, 2022
  2. M09Ic commented on Jan 11, 2022

    @M09Ic
    Contributor

    I need a similar function, but it's md5.
    So, if we could support custom common hash types.
    Like:
    echo url | httpx -hash md5,sha1,sha256

    Also, many favicon fingerprints use md5 instead of mmr3, so we can use httpx -path /favicon.ico -hash md5

  3. added
    Type: Discussion
    and removed
    Type: Enhancement
    on Jan 13, 2022
  4. ehsandeep commented on Mar 8, 2022

    @ehsandeep
    Member

    @atlassion recently multiple hash support was introduced to httpx, so it's not feasible to add new flags to match/filter by each hash type instead we suggest using json format for output and doing the post-processing on output file as you need or simple grep will also work for this case:

    chaos -silent -d hackerone.com | httpx -hash md5 -silent | grep bb44d26003a2b044e235aae2fc8427f7
    
    https://mta-sts.managed.hackerone.com [bb44d26003a2b044e235aae2fc8427f7]
    https://mta-sts.forwarding.hackerone.com [bb44d26003a2b044e235aae2fc8427f7]
    https://mta-sts.hackerone.com [bb44d26003a2b044e235aae2fc8427f7]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type: Discussion

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions