Land #10349, deconflict the method names in mix-ins

4.x
asoto-r7 2018-07-23 13:38:46 -05:00 committed by Metasploit
parent e075836ad5
commit 28bb518dbd
No known key found for this signature in database
GPG Key ID: CDFB5FA52007B954
5 changed files with 10 additions and 10 deletions

View File

@ -54,8 +54,8 @@ module Payload::Windows::Powershell
return "#{cli} \"#{script}\""
end
def generate
command_string
def command_string
powershell_command
end
end
end

View File

@ -15,7 +15,7 @@ require 'msf/core/handler/bind_tcp'
###
module MetasploitModule
CachedSize = 1518
CachedSize = 1703
include Msf::Payload::Windows::Exec
include Rex::Powershell::Command
@ -53,7 +53,7 @@ module MetasploitModule
#
# Override the exec command string
#
def command_string
def powershell_command
generate_powershell_code("Bind")
end
end

View File

@ -15,7 +15,7 @@ require 'msf/core/handler/reverse_tcp_ssl'
###
module MetasploitModule
CachedSize = 1526
CachedSize = 1711
include Msf::Payload::Windows::Exec
include Msf::Payload::Windows::Powershell
@ -53,7 +53,7 @@ module MetasploitModule
#
# Override the exec command string
#
def command_string
def powershell_command
generate_powershell_code("Reverse")
end
end

View File

@ -15,7 +15,7 @@ require 'msf/core/handler/bind_tcp'
###
module MetasploitModule
CachedSize = 1518
CachedSize = 1786
include Msf::Payload::Windows::Exec_x64
include Rex::Powershell::Command
@ -53,7 +53,7 @@ module MetasploitModule
#
# Override the exec command string
#
def command_string
def powershell_command
generate_powershell_code("Bind")
end
end

View File

@ -15,7 +15,7 @@ require 'msf/core/handler/reverse_tcp_ssl'
###
module MetasploitModule
CachedSize = 1526
CachedSize = 1794
include Msf::Payload::Windows::Exec_x64
include Msf::Payload::Windows::Powershell
@ -53,7 +53,7 @@ module MetasploitModule
#
# Override the exec command string
#
def command_string
def powershell_command
generate_powershell_code("Reverse")
end
end