Sha256: 663c0f5db9079d652d5993b2828a388c983eadaf67515836ba3ba6b0c6179717
Contents?: true
Size: 1.99 KB
Versions: 5
Compression:
Stored size: 1.99 KB
Contents
#!/usr/bin/env ruby =begin Arachni Copyright (c) 2010-2011 Tasos "Zapotek" Laskos <tasos.laskos@gmail.com> This is free software; you can copy and distribute and modify this program under the term of the GPL v2.0 License (See LICENSE file for details) =end require 'getoptlong' require 'pp' require 'ap' cwd = File.expand_path( File.dirname( __FILE__ ) ) $:.unshift( cwd ) require cwd + '/../lib/options' options = Arachni::Options.instance options.dir = Hash.new options.dir['root'] = File.expand_path( cwd + '/../' ) + '/' options.dir['modules'] = options.dir['root'] + 'modules/' options.dir['reports'] = options.dir['root'] + 'reports/' options.dir['plugins'] = options.dir['root'] + 'plugins/' options.dir['lib'] = options.dir['root'] + 'lib/' # Construct getops struct opts = GetoptLong.new( [ '--help', '-h', GetoptLong::NO_ARGUMENT ], [ '--port', GetoptLong::OPTIONAL_ARGUMENT ], [ '--debug', GetoptLong::NO_ARGUMENT ], [ '--reroute-to-logfile', GetoptLong::NO_ARGUMENT ], [ '--ssl', GetoptLong::NO_ARGUMENT ], [ '--ssl-pkey', GetoptLong::REQUIRED_ARGUMENT ], [ '--ssl-cert', GetoptLong::REQUIRED_ARGUMENT ], [ '--ssl-ca', GetoptLong::REQUIRED_ARGUMENT ], ) begin opts.each { |opt, arg| case opt when '--help' options.help = true when '--debug' options.debug = true when '--ssl' options.ssl = true when '--ssl-pkey' options.ssl_pkey = arg.to_s when '--ssl-cert' options.ssl_cert = arg.to_s when '--ssl-ca' options.ssl_ca = arg.to_s end } end options.url = ARGV.shift require options.dir['lib'] + 'ui/xmlrpc/dispatcher_monitor' dispatcher = Arachni::UI::DispatcherMonitor.new( Arachni::Options.instance ) dispatcher.run
Version data entries
5 entries across 5 versions & 1 rubygems