Method: Cross::Engine#start

Defined in:
lib/cross/engine.rb

#start(options = {:exploit_url=>false, :debug=>false, :oneshot=>false, :sample_post=>"", :parameter_to_tamper=>"", :auth=>{:username=>nil, :password=>nil}, :target=>""}) ⇒ Object

Starts the engine



28
29
30
31
32
33
34
35
# File 'lib/cross/engine.rb', line 28

def start(options = {:exploit_url=>false, :debug=>false, :oneshot=>false, :sample_post=>"", :parameter_to_tamper=>"", :auth=>{:username=>nil, :password=>nil}, :target=>""})
  @agent = Mechanize.new {|a| a.log = Logger.new(create_log_filename(options[:target]))}
  @agent.user_agent = "cross v#{Cross::VERSION}"
  @agent.agent.http.verify_mode = OpenSSL::SSL::VERIFY_NONE
  @options = options
  @target = options[:target]
  @results = []
end