Module Msf::Handler::ReverseTcpDouble
In: lib/msf/core/handler/reverse_tcp_double.rb

This module implements the reverse double TCP handler. This means that it listens on a port waiting for a two connections, one connection is treated as stdin, the other as stdout.

This handler depends on having a local host and port to listen on.

Methods

Included Modules

Msf::Handler

Classes and Modules

Class Msf::Handler::ReverseTcpDouble::TcpReverseDoubleSessionChannel

Public Class methods

Returns the connection-described general handler type, in this case ‘reverse’.

Returns the string representation of the handler type, in this case ‘reverse_tcp_double’.

Initializes the reverse TCP handler and ads the options that are required for all reverse TCP payloads, like local host and local port.

Public Instance methods

Closes the listener socket if one was created.

Accept two sockets and determine which one is the input and which is the output. This method assumes that these sockets pipe to a remote shell, it should overridden if this is not the case.

Starts the listener but does not actually attempt to accept a connection. Throws socket exceptions if it fails to start the listener.

Starts monitoring for an inbound connection.

Stops monitoring for an inbound connection.

[Validate]