| Module | Msf::Exploit::Remote::HttpServer |
| In: |
lib/msf/core/exploit/http.rb
|
This module provides methods for exploiting an HTTP client by acting as an HTTP server.
Adds a URI resource using the supplied hash parameters.
Path => The path to associate the procedure with. Proc => The procedure to call when the URI is requested. LongCall => Indicates that the request is a long call.
This method gives a derived class the opportunity to ensure that all dependencies are present before initializing the service.
By default, all HTTP server mixins will try to use zlib.
Called when a request is made to a single URI registered during the start_service. Subsequent registrations will not result in a call to on_request_uri.
Re-generates the payload, substituting the current RHOST and RPORT with the supplied client host and port.
Transmits a response to the supplied client, default content-type is text/html
Payload evasions are implemented here!
This mixin starts the HTTP server listener. This routine takes a few different hash parameters:
ServerHost => Override the server host to listen on (default to SRVHOST). ServerPort => Override the server port to listen on (default to SRVPORT). Uri => The URI to handle and the associated procedure to call.