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
|
keyfile = datastore['SSH_KEYFILE_B64'].unpack("m*").first
|
||||||
elsif file.kind_of? Array
|
elsif file.kind_of? Array
|
||||||
keyfile = ''
|
keyfile = ''
|
||||||
file.map { |f| ::File.expand_path(f) }.each do |dir_entry|
|
file.each do |dir_entry|
|
||||||
next unless ::File.readable? dir_entry
|
next unless ::File.readable? dir_entry
|
||||||
keyfile << ::File.open(dir_entry, "rb") {|f| f.read(f.stat.size)}
|
keyfile << ::File.open(dir_entry, "rb") {|f| f.read(f.stat.size)}
|
||||||
end
|
end
|
||||||
else
|
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
|
end
|
||||||
keys = []
|
keys = []
|
||||||
this_key = []
|
this_key = []
|
||||||
|
|
Loading…
Reference in New Issue