fix merge conflict
parent
e80cda4ace
commit
34e5f69fbf
|
@ -56,6 +56,17 @@ require 'msf/core/exe/segment_injector'
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def self.read_replace_script_template(filename, hash_sub)
|
||||||
|
template_pathname = File.join(Msf::Config.install_root, "data", "templates", "scripts", filename)
|
||||||
|
|
||||||
|
template = ''
|
||||||
|
File.open(template_pathname, "rb") do |f|
|
||||||
|
template = f.read
|
||||||
|
end
|
||||||
|
|
||||||
|
return template % hash_sub
|
||||||
|
end
|
||||||
|
|
||||||
|
|
||||||
##
|
##
|
||||||
#
|
#
|
||||||
|
|
Loading…
Reference in New Issue