@@ -29,19 +29,19 @@ def initialize(info = {})
29
29
register_options (
30
30
[
31
31
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 ] ) ,
33
33
OptInt . new ( 'LPORT' ,
34
- [ false , 'Port for payload to connect to.' , 4433 ] ) ,
34
+ [ true , 'Port for payload to connect to.' , 4433 ] ) ,
35
35
OptBool . new ( 'HANDLER' ,
36
36
[ true , 'Start an exploit/multi/handler to receive the connection' , true ] )
37
37
] , self . class )
38
38
register_advanced_options ( [
39
39
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 ] )
45
45
] , self . class )
46
46
deregister_options ( 'PERSIST' , 'PSH_OLD_METHOD' , 'RUN_WOW64' )
47
47
end
@@ -51,7 +51,7 @@ def run
51
51
print_status ( "Upgrading session ID: #{ datastore [ 'SESSION' ] } " )
52
52
53
53
if session . type =~ /meterpreter/
54
- print_error ( "Shell type is already Meterpreter." )
54
+ print_error ( "Shell is already Meterpreter." )
55
55
return nil
56
56
end
57
57
0 commit comments