Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Licence Changed. Return added when RHOST is nil

  • Loading branch information...
commit cdd9eb19cf5ad8bd9e680c1b9a3fa77937ad0ac9 1 parent eca8555
Borja Merino authored
Showing with 8 additions and 4 deletions.
  1. +8 −4 modules/post/windows/manage/rpcapd_start.rb
12 modules/post/windows/manage/rpcapd_start.rb
View
@@ -29,7 +29,7 @@ def initialize(info={})
the service in passive or active mode (useful if the client is behind a firewall).
If authentication is enabled you need a local user account to capture traffic.
PORT will be used depending of the mode configured.},
- 'License' => BSD_LICENSE,
+ 'License' => MSF_LICENSE,
'Author' => [ 'Borja Merino <bmerinofe[at]gmail.com>'],
'Platform' => [ 'windows' ],
'SessionTypes' => [ 'meterpreter' ]
@@ -60,9 +60,13 @@ def run
service_change_startup("rpcapd","auto")
end
if datastore['ACTIVE']==true
- print_error("RHOST is not set ") if datastore['RHOST']==nil
- p = prog << " -d -a #{datastore['RHOST']},#{datastore['PORT']} -v "
- print_status("Installing rpcap in ACTIVE mode (remote port: #{datastore['PORT']})")
+ if datastore['RHOST']==nil
+ print_error("RHOST is not set ")
+ return
+ else
+ p = prog << " -d -a #{datastore['RHOST']},#{datastore['PORT']} -v "
+ print_status("Installing rpcap in ACTIVE mode (remote port: #{datastore['PORT']})")
+ end
else
fw_enable(prog)
print_status("Installing rpcap in PASSIVE mode (local port: #{datastore['PORT']}) ")
Please sign in to comment.
Something went wrong with that request. Please try again.