Move ReverseTcpComm to a new directory

Reverse::Comm
bug/bundler_fix
James Lee 2015-10-06 14:48:49 -05:00
parent 645a59349a
commit 711ce1e579
No known key found for this signature in database
GPG Key ID: 2D6094C7CEA0A321
5 changed files with 9 additions and 13 deletions

View File

@ -3,13 +3,14 @@ require 'rex/socket'
module Msf
module Handler
module Reverse
###
#
# This module implements the reverse Rex::Socket::Comm handlng.
# Implements the reverse Rex::Socket::Comm handlng.
#
###
module ReverseTcpComm
module Comm
def initialize(info = {})
super
@ -17,7 +18,7 @@ module ReverseTcpComm
register_advanced_options(
[
OptString.new('ReverseListenerComm', [ false, 'The specific communication channel to use for this listener']),
], Msf::Handler::ReverseTcpComm)
], Msf::Handler::Reverse::Comm)
end
def select_comm
@ -41,3 +42,4 @@ end
end
end
end

View File

@ -20,7 +20,7 @@ module Handler
module ReverseTcp
include Msf::Handler
include Msf::Handler::ReverseTcpComm
include Msf::Handler::Reverse::Comm
#
# Returns the string representation of the handler type, in this case
@ -76,10 +76,7 @@ module ReverseTcp
ex = false
# Identify the comm to use from
# Msf::Handler::ReverseTcpComm.select_comm
comm = select_comm
local_port = bind_port
addrs = bind_address

View File

@ -15,6 +15,7 @@ module Handler
module ReverseTcpDouble
include Msf::Handler
include Msf::Handler::Reverse::Comm
#
# Returns the string representation of the handler type, in this case
@ -65,7 +66,7 @@ module ReverseTcpDouble
self.listener_sock = Rex::Socket::TcpServer.create(
# 'LocalHost' => datastore['LHOST'],
'LocalPort' => datastore['LPORT'].to_i,
'Comm' => comm,
'Comm' => select_comm,
'Context' =>
{
'Msf' => framework,

View File

@ -15,6 +15,7 @@ module Handler
module ReverseTcpDoubleSSL
include Msf::Handler
include Msf::Handler::Reverse::Comm
#
# Returns the string representation of the handler type, in this case
@ -68,8 +69,6 @@ module ReverseTcpDoubleSSL
ex = false
# Identify the comm to use from
# Msf::Handler::ReverseTcpComm.select_comm
comm = select_comm
local_port = bind_port
addrs = bind_address

View File

@ -61,10 +61,7 @@ module ReverseTcpSsl
ex = false
# Identify the comm to use from
# Msf::Handler::ReverseTcpComm.select_comm
comm = select_comm
local_port = bind_port
addrs = bind_address