Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Please, add BodySHA256 match/filter #488

Closed
atlassion opened this issue Jan 11, 2022 · 2 comments · Fixed by #517
Closed

Please, add BodySHA256 match/filter #488

atlassion opened this issue Jan 11, 2022 · 2 comments · Fixed by #517
Labels
Type: Discussion Some ideas need to be planned and disucssed to come to a strategy.

Comments

@atlassion
Copy link

atlassion commented Jan 11, 2022

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

@atlassion atlassion added the Type: Enhancement Most issues will probably ask for additions or changes. label Jan 11, 2022
@M09Ic
Copy link
Contributor

M09Ic commented Jan 11, 2022

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

@ehsandeep ehsandeep added Type: Discussion Some ideas need to be planned and disucssed to come to a strategy. and removed Type: Enhancement Most issues will probably ask for additions or changes. labels Jan 13, 2022
@ehsandeep ehsandeep linked a pull request Feb 15, 2022 that will close this issue
@ehsandeep
Copy link
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
Labels
Type: Discussion Some ideas need to be planned and disucssed to come to a strategy.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants