Allow hyphens for fnames and ltypes for fileformat exploits

unstable
Tod Beardsley 2011-11-28 19:16:30 -06:00
parent f503bd9488
commit ac33e55df5
1 changed files with 2 additions and 2 deletions

View File

@ -253,10 +253,10 @@ module Auxiliary::Report
ext ||= "bin"
end
fname.gsub!(/[^a-z0-9\.\_]+/i, '')
fname.gsub!(/[^a-z0-9\.\_\-]+/i, '')
fname << ".#{ext}"
ltype.gsub!(/[^a-z0-9\.\_]+/i, '')
ltype.gsub!(/[^a-z0-9\.\_\-]+/i, '')
path = File.join(Msf::Config.local_directory, fname)
full_path = ::File.expand_path(path)