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

Feature request: string/regex search in response bodies #97

Closed
xEHLE opened this issue Sep 9, 2020 · 2 comments · Fixed by #110
Closed

Feature request: string/regex search in response bodies #97

xEHLE opened this issue Sep 9, 2020 · 2 comments · Fixed by #110
Assignees
Labels
Priority: Low This issue can probably be picked up by anyone looking to contribute to the project, as an entry fix Type: Enhancement Most issues will probably ask for additions or changes.

Comments

@xEHLE
Copy link

xEHLE commented Sep 9, 2020

It would be nice to have a feature that lets us specify either a string or regex pattern to search for in the response bodies and print if it found something to the output.
Example:
httpx -l domains -contains "admin"
http://example.com [true]
http://example2.com [false]

httpx -l domains -contains "".*jquery.js"
http://example.com [true]
http://example2.com [false]

@vay3t
Copy link

vay3t commented Sep 9, 2020

I think that the objective of the project is not that, also you can use ffuf

@ehsandeep ehsandeep added Priority: Low This issue can probably be picked up by anyone looking to contribute to the project, as an entry fix Type: Enhancement Most issues will probably ask for additions or changes. labels Sep 9, 2020
@Mzack9999 Mzack9999 self-assigned this Sep 13, 2020
@Mzack9999 Mzack9999 linked a pull request Sep 14, 2020 that will close this issue
@ehsandeep
Copy link
Member

Hi @xEHLE,

We ended up adding a matcher/filter for the response body (header+body) to align with other matcher/filters we have for status and length.

echo hackerone.com | ./httpx -silent -match-string hackerone
https://hackerone.com
echo hackerone.com | ./httpx -silent -filter-string hackerone

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Priority: Low This issue can probably be picked up by anyone looking to contribute to the project, as an entry fix Type: Enhancement Most issues will probably ask for additions or changes.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants