require 'webrick/httpproxy' require 'webrick/httputils' module BeEF class HttpProxyBase < WEBrick::HTTPProxyServer # call BeEF::HttpProxyZombie.instance include Singleton attr_reader :config def initialize @configuration = BeEF::Configuration.instance @config[:Logger] = WEBrick::Log.new($stdout, WEBrick::Log::ERROR) @config[:ServerType] = Thread super(@config) end # remove beef hook if it exists def remove_hook(res) res.body.gsub!(%r'', '') end end end