Sha256: e304784352f93007d185c56e92855034726dbc6ba29333c6d3a8161e14a6fc26
Contents?: true
Size: 1.19 KB
Versions: 5
Compression:
Stored size: 1.19 KB
Contents
#!/usr/bin/env ruby =begin Copyright 2010-2014 Tasos Laskos <tasos.laskos@arachni-scanner.com> This file is part of the Arachni Framework project and is subject to redistribution and commercial restrictions. Please see the Arachni Framework web site for more information on licensing and terms of use. =end require_relative '../ui/cli/output' require_relative '../lib/arachni' require 'irb' require 'irb/completion' include Arachni include UI::Output puts BANNER puts puts "(Call the 'mute' method to mute framework output.)" IRB.setup nil IRB.conf[:MAIN_CONTEXT] = IRB::Irb.new.context HISTFILE = '~/.irb_history' MAXHISTSIZE = 300 begin histfile = File.expand_path( HISTFILE ) if File.exists?( histfile ) lines = IO.readlines( histfile ).map { |line| line.chomp } Readline::HISTORY.push( *lines ) end Kernel.at_exit do lines = Readline::HISTORY.to_a.reverse.uniq.reverse lines = lines[-MAXHISTSIZE, MAXHISTSIZE] if lines.size > MAXHISTSIZE File.open( histfile, 'a' ) { |f| f.write( lines.join( "\n" ) ) } end rescue => e puts "Error when configuring permanent history: #{e}" end require 'irb/ext/multi-irb' IRB.irb nil, Arachni
Version data entries
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
arachni-1.0.4 | bin/arachni_console |
arachni-1.0.3 | bin/arachni_console |
arachni-1.0.2 | bin/arachni_console |
arachni-1.0.1 | bin/arachni_console |
arachni-1.0 | bin/arachni_console |