Disable ERB templating for Metasploit::Framework::Compiler::Utils

GSoC/Meterpreter_Web_Console
Wei Chen 2018-10-16 14:02:13 -05:00
parent a19046dedb
commit 69cd0a5ddc
1 changed files with 4 additions and 3 deletions

View File

@ -11,16 +11,17 @@ module Metasploit
def self.normalize_code(code, headers)
code = code.lines.map { |line|
if line =~ /^#include <([[:print:]]+)>$/
%Q|<%= headers.include('#{$1}') %>\n|
h = headers.include("#{$1}")
%Q|#{h}\n|
else
line
end
}.join
ERB.new(code).result(binding)
code
end
end
end
end
end
end