Skip to content
justinbastress edited this page Feb 7, 2018 · 1 revision

The HTTP module is based on the original zgrab grabber.

Flags

  • BaseFlags
  • TLSFlags
  • --method: Set the HTTP method for the request. Default GET.
  • --endpoint: Fetch a specific document. Default /.
  • --user-agent: Use a specific user-agent header. Default Mozilla/5.0 zgrab/0.x.
  • --max-size: Maximum number of kilobytes to read from the response. Default 256.
  • --max-redirects: Maximum number of redirects to follow. Default 0.
  • --follow-localhost-redirects: Allow redirects to localhost. Disabled by default.
  • --use-https: perform the first request over TLS, without requiring a redirect. Disabled by default. Does not change the port.

Scan

  1. Do a request against the host with the given configuration
  • Always sends the Accept: */* header
  1. If the response is a redirect and the max-redirects has not been exceeded, follow the redirect.

Output

  • response: The terminal HTTP response, as a http.Response object.
  • redirect_response_chain: an array of all http.Responses, including intermediate redirects.
Clone this wiki locally