Remove need for expand_path in this module; normalize handles it now
parent
3df4c38e82
commit
48c25dd863
|
@ -90,12 +90,12 @@ class MetasploitModule < Msf::Auxiliary
|
|||
keyfile = datastore['SSH_KEYFILE_B64'].unpack("m*").first
|
||||
elsif file.kind_of? Array
|
||||
keyfile = ''
|
||||
file.map { |f| ::File.expand_path(f) }.each do |dir_entry|
|
||||
file.each do |dir_entry|
|
||||
next unless ::File.readable? dir_entry
|
||||
keyfile << ::File.open(dir_entry, "rb") {|f| f.read(f.stat.size)}
|
||||
end
|
||||
else
|
||||
keyfile = ::File.open(::File.expand_path(file), "rb") {|f| f.read(f.stat.size)}
|
||||
keyfile = ::File.open(file, "rb") {|f| f.read(f.stat.size)}
|
||||
end
|
||||
keys = []
|
||||
this_key = []
|
||||
|
|
Loading…
Reference in New Issue