| Module | Msf::Handler::PassiveX |
| In: |
lib/msf/core/handler/passivex.rb
|
This handler implements the PassiveX reverse HTTP tunneling interface.
Called when a new session is created on behalf of this handler. In this case, we extend the session so that we can track references to the handler since we need to keep the HTTP tunnel up while the session is alive.
Create an HTTP listener that will be connected to and communicated with by the payload that is injected, and possibly used for tunneling purposes.
PassiveX payloads have a wait-for-session delay of 30 seconds minimum because it can take a bit of time for the OCX to get registered.
Processes the HTTP request from the PassiveX client. In this case, when a request is made to "/", an HTML body is sent that has an embedded object tag. This causes the passivex.dll to be downloaded and registered (since registration and downloading have been enabled prior to this point). After that, the OCX may create a tunnel or download a second stage if instructed by the server.