Allow hyphens for fnames and ltypes for fileformat exploits
parent
f503bd9488
commit
ac33e55df5
|
@ -253,10 +253,10 @@ module Auxiliary::Report
|
||||||
ext ||= "bin"
|
ext ||= "bin"
|
||||||
end
|
end
|
||||||
|
|
||||||
fname.gsub!(/[^a-z0-9\.\_]+/i, '')
|
fname.gsub!(/[^a-z0-9\.\_\-]+/i, '')
|
||||||
fname << ".#{ext}"
|
fname << ".#{ext}"
|
||||||
|
|
||||||
ltype.gsub!(/[^a-z0-9\.\_]+/i, '')
|
ltype.gsub!(/[^a-z0-9\.\_\-]+/i, '')
|
||||||
|
|
||||||
path = File.join(Msf::Config.local_directory, fname)
|
path = File.join(Msf::Config.local_directory, fname)
|
||||||
full_path = ::File.expand_path(path)
|
full_path = ::File.expand_path(path)
|
||||||
|
|
Loading…
Reference in New Issue