plugins/proxy.rb in arachni-0.4.3 vs plugins/proxy.rb in arachni-0.4.3.1

- old
+ new

@@ -23,19 +23,17 @@ # Will gather data based on user actions and exchanged HTTP traffic and push that # data to {Framework#push_to_page_queue} to be audited. # # @author Tasos "Zapotek" Laskos <tasos.laskos@gmail.com> # -# @version 0.2.2 +# @version 0.2.3 # class Arachni::Plugins::Proxy < Arachni::Plugin::Base BASEDIR = "#{File.dirname( __FILE__ )}/proxy/" BASE_URL = 'http://arachni.proxy/' - require_relative 'proxy/template_scope' - MSG_SHUTDOWN = 'Shutting down the Arachni proxy plug-in...' MSG_DISALLOWED = 'You can\'t access this resource via the Arachni ' + 'proxy plug-in for the following reasons:' @@ -51,11 +49,12 @@ def prepare # don't let the framework run just yet framework.pause print_info 'System paused.' - require "#{File.dirname( __FILE__ )}/proxy/server" + require_relative 'proxy/template_scope' + require_relative 'proxy/server' @server = Server.new( BindAddress: options['bind_address'], Port: options['port'], ProxyVia: false, @@ -482,10 +481,10 @@ WARNING: The 'session_token' option is not a way to secure usage of this proxy but rather a way to restrict usage enough to avoid users unwittingly interfering with each others' sessions.}, author: 'Tasos "Zapotek" Laskos <tasos.laskos@gmail.com>', - version: '0.2.2', + version: '0.2.3', options: [ Options::Port.new( 'port', [false, 'Port to bind to.', 8282] ), Options::Address.new( 'bind_address', [false, 'IP address to bind to.', '0.0.0.0'] ), Options::String.new( 'session_token',