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.

Methods

Included Modules

Msf::Exploit::Remote::TcpServer

Classes and Modules

Module Msf::Exploit::Remote::HttpServer::HTML
Module Msf::Exploit::Remote::HttpServer::PHPInclude

Public Class methods

Protected Instance methods

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.

By default, all HTTP servers are not subject to automatic exploitation

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.

Closes a client connection.

Returns the last-used resource path

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.

Generates a random URI for use with making finger printing more challenging.

Re-generates the payload, substituting the current RHOST and RPORT with the supplied client host and port.

Removes a URI resource.

Returns the configured (or random, if not configured) URI path

Sends a 302 redirect relative to our base path

Sends a 302 redirect to the client

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.

Ensures that gzip can be used. If not, an exception is generated. The exception is only raised if the DisableGzip advanced option has not been set.

[Validate]