From 33139c4ecd8047c3c98544ed356eb8d2fc729bc7 Mon Sep 17 00:00:00 2001 From: g0tmi1k Date: Tue, 16 Jun 2015 20:42:47 +0100 Subject: [PATCH] shell_to_meterpreter minor improvements --- .../post/multi/manage/shell_to_meterpreter.rb | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/modules/post/multi/manage/shell_to_meterpreter.rb b/modules/post/multi/manage/shell_to_meterpreter.rb index c06e5f8c46..401063598b 100644 --- a/modules/post/multi/manage/shell_to_meterpreter.rb +++ b/modules/post/multi/manage/shell_to_meterpreter.rb @@ -29,19 +29,19 @@ class Metasploit3 < Msf::Post register_options( [ OptAddress.new('LHOST', - [false, 'IP of host that will receive the connection from the payload.']), + [false, 'IP of host that will receive the connection from the payload (Will try to auto detect).', nil]), OptInt.new('LPORT', - [false, 'Port for payload to connect to.', 4433]), + [true, 'Port for payload to connect to.', 4433]), OptBool.new('HANDLER', [ true, 'Start an exploit/multi/handler to receive the connection', true]) ], self.class) register_advanced_options([ OptInt.new('HANDLE_TIMEOUT', - [false, 'How long to wait for the session to come back', 30]), - OptString.new('WIN_TRANSFER', - [false, 'Which method to try first to transfer files on a Windows target. Valid values are: POWERSHELL, VBS', 'POWERSHELL']), - OptString.new('PAYLOAD_OVERWRITE', - [false, 'Overwrite the default payload', nil]) + [true, 'How long to wait (in seconds) for the session to come back.', 30]), + OptEnum.new('WIN_TRANSFER', + [true, 'Which method to try first to transfer files on a Windows target.', 'POWERSHELL', ['POWERSHELL', 'VBS']]), + OptString.new('PAYLOAD_OVERRIDE', + [false, 'Define the payload to use (meterpreter/reverse_tcp by default) .', nil]) ], self.class) deregister_options('PERSIST', 'PSH_OLD_METHOD', 'RUN_WOW64') end @@ -51,7 +51,7 @@ class Metasploit3 < Msf::Post print_status("Upgrading session ID: #{datastore['SESSION']}") if session.type =~ /meterpreter/ - print_error("Shell type is already Meterpreter.") + print_error("Shell is already Meterpreter.") return nil end