Skip to content

Commit 33139c4

Browse files
committed
shell_to_meterpreter minor improvements
1 parent fc68606 commit 33139c4

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

modules/post/multi/manage/shell_to_meterpreter.rb

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -29,19 +29,19 @@ def initialize(info = {})
2929
register_options(
3030
[
3131
OptAddress.new('LHOST',
32-
[false, 'IP of host that will receive the connection from the payload.']),
32+
[false, 'IP of host that will receive the connection from the payload (Will try to auto detect).', nil]),
3333
OptInt.new('LPORT',
34-
[false, 'Port for payload to connect to.', 4433]),
34+
[true, 'Port for payload to connect to.', 4433]),
3535
OptBool.new('HANDLER',
3636
[ true, 'Start an exploit/multi/handler to receive the connection', true])
3737
], self.class)
3838
register_advanced_options([
3939
OptInt.new('HANDLE_TIMEOUT',
40-
[false, 'How long to wait for the session to come back', 30]),
41-
OptString.new('WIN_TRANSFER',
42-
[false, 'Which method to try first to transfer files on a Windows target. Valid values are: POWERSHELL, VBS', 'POWERSHELL']),
43-
OptString.new('PAYLOAD_OVERWRITE',
44-
[false, 'Overwrite the default payload', nil])
40+
[true, 'How long to wait (in seconds) for the session to come back.', 30]),
41+
OptEnum.new('WIN_TRANSFER',
42+
[true, 'Which method to try first to transfer files on a Windows target.', 'POWERSHELL', ['POWERSHELL', 'VBS']]),
43+
OptString.new('PAYLOAD_OVERRIDE',
44+
[false, 'Define the payload to use (meterpreter/reverse_tcp by default) .', nil])
4545
], self.class)
4646
deregister_options('PERSIST', 'PSH_OLD_METHOD', 'RUN_WOW64')
4747
end
@@ -51,7 +51,7 @@ def run
5151
print_status("Upgrading session ID: #{datastore['SESSION']}")
5252

5353
if session.type =~ /meterpreter/
54-
print_error("Shell type is already Meterpreter.")
54+
print_error("Shell is already Meterpreter.")
5555
return nil
5656
end
5757

0 commit comments

Comments
 (0)