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

Extracted location header into Result json to allow for additional da… #64

Conversation

tracertea
Copy link

When providing the -json flag print the contents of the location header to gain additional visibility into redirects.

{"url":"https://google.com","content-length":220,"status-code":301,"location":"https://www.google.com/","title":"301 Moved",....

@ehsandeep
Copy link
Member

Hey @tracertea, this is a nice addition, also looks useful info to print on the terminal as well, do you think adding optional location flag to print the redirect values like this would be useful as well?

> chaos -d hackerone.com -silent | ./httpx -status-code -location

https://mta-sts.hackerone.com [404] []
https://mta-sts.forwarding.hackerone.com [404] []
https://docs.hackerone.com [200] []
https://mta-sts.managed.hackerone.com [404] []
https://www.hackerone.com [200] []
https://support.hackerone.com [301] [] [https://support.hackerone.com/hc]
https://api.hackerone.com [200] []
https://resources.hackerone.com [301] [http://resources.hackerone.com/]

@tracertea
Copy link
Author

Yeah I think -location would be a useful flag for the non-json output.

@tracertea
Copy link
Author

@bauthard I added the -location flag to the commit.

@ehsandeep ehsandeep merged commit 84dc1e9 into projectdiscovery:master Aug 12, 2020
@ehsandeep
Copy link
Member

Thanks a lot for the new feature and PR @tracertea

@tracertea tracertea deleted the @tracertea/feature/extract-location-header branch August 14, 2020 19:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants