Expand tilde in resource file pathname

GSoC/Meterpreter_Web_Console
Matthew Kienow 2018-05-24 21:06:57 -04:00
parent 9c8b619548
commit 3d6d55e087
No known key found for this signature in database
GPG Key ID: 40787F8B1EAC6E41
1 changed files with 3 additions and 2 deletions

View File

@ -51,11 +51,12 @@ module Msf
end
args.each do |res|
res_expand = ::File.expand_path(res)
good_res = nil
if res == '-'
good_res = res
elsif ::File.exist?(res)
good_res = res
elsif ::File.exist?(res_expand)
good_res = res_expand
elsif
# let's check to see if it's in the scripts/resource dir (like when tab completed)
[