handle the lpath not being specified

bug/bundler_fix
Brent Cook 2016-06-09 16:21:49 -05:00
parent 0d7b587b5d
commit ba40d0e06f
No known key found for this signature in database
GPG Key ID: 1FFAA0B24B708F96
1 changed files with 6 additions and 0 deletions

View File

@ -57,6 +57,12 @@ class MetasploitModule < Msf::Auxiliary
self.simple.connect("\\\\#{rhost}\\#{datastore['SMBSHARE']}") self.simple.connect("\\\\#{rhost}\\#{datastore['SMBSHARE']}")
remote_path = remote_paths.first remote_path = remote_paths.first
if local_paths.nil?
print_error("Local paths not specified")
return
end
local_paths.each do |local_path| local_paths.each do |local_path|
begin begin
vprint_status("Trying to upload #{local_path} to #{remote_path}...") vprint_status("Trying to upload #{local_path} to #{remote_path}...")