diff --git a/lib/metasploit/framework/compiler/utils.rb b/lib/metasploit/framework/compiler/utils.rb index 27c912b2dd..3b4ae8fd25 100644 --- a/lib/metasploit/framework/compiler/utils.rb +++ b/lib/metasploit/framework/compiler/utils.rb @@ -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 \ No newline at end of file +end