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

feat(http-request-body): allow users to specify a request body in the HTTP module #380

Merged
merged 1 commit into from
Aug 6, 2023

Conversation

lc
Copy link
Contributor

@lc lc commented May 7, 2023

This PR allows users to specify a HTTP request body in the http module via a new flag called -request-body

How to Test

zgrab2 http -p 80 --method POST --request-body='{"test":"true"}' --custom-headers-names='Content-Type' --c
ustom-headers-values='application/json'

Notes & Caveats

I needed to be able to POST a request body to fingerprint a specific webservice.

I found this older PR was open, but when I tried using this fork, it didn't work

So I wrote this quickly.

@mzpqnxow
Copy link
Contributor

mzpqnxow commented Aug 6, 2023

@lc thank you for picking this up! I felt bad I never got around to re-basing it

@dadrian dadrian merged commit 97ba87c into zmap:master Aug 6, 2023
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.

3 participants