-
Notifications
You must be signed in to change notification settings - Fork 307
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
ZGrab is adding a trailing slash /
to URL's with http scans
#451
Comments
It's arguable whether this is a bug, though I understand it's not intuitive What I can tell you for sure, though, is that the intended way to request a URL path is:
Like I said, what you're seeing is certainly not intuitive- but it's also not how the http module was intended to be used The input should only be the target name (or the CSV format, which allows name, ip, tag/trigger and optionally, port, all on one line) I'm actually a little surprised that it didn't result in a host header like:
|
In retrospect, I'm not certain about my assessment If what I asserted is correct, it's arguably still fair to call this behavior a bug- for one, because "/" is not a valid hostname and should possibly be rejected in some way by zgrab2 It's your call either way @phillip-stephens I could take a shot at a PR if you can determine about what the desired behavior is |
Description
When scanning with the
http
module, it was noticed that zgrab2 is appending a single '/' character to the URL. This resulted in some target resources not being able to be scanned with ZGrab2.Steps to Reproduce
Version of ZGrab2 - master branch, latest
ZGrab2 invocation -
echo prstephens.com/src/style.css | ./zgrab2 http
tcpdump with appended
/
Desired Behavior
Resources can either have or not have a trailing slash and
zgrab2
should respect the user's selected input. No slash should be appended to the scanned URL.The text was updated successfully, but these errors were encountered: