Skip to content

Commit ba40d0e

Browse files
author
Brent Cook
committed
handle the lpath not being specified
1 parent 0d7b587 commit ba40d0e

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

modules/auxiliary/admin/smb/upload_file.rb

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,12 @@ def run_host(_ip)
5757
self.simple.connect("\\\\#{rhost}\\#{datastore['SMBSHARE']}")
5858

5959
remote_path = remote_paths.first
60+
61+
if local_paths.nil?
62+
print_error("Local paths not specified")
63+
return
64+
end
65+
6066
local_paths.each do |local_path|
6167
begin
6268
vprint_status("Trying to upload #{local_path} to #{remote_path}...")

0 commit comments

Comments
 (0)