Sha256: b096f6630c44bc1107c119986e4d6d72d3e3bece46a8525bf2087254bfb28953
Contents?: true
Size: 985 Bytes
Versions: 3
Compression:
Stored size: 985 Bytes
Contents
#!/usr/bin/env jruby require File.expand_path(File.join(File.dirname(__FILE__), %w[.. lib buby])) require 'irb' require 'optparse' args = {} begin opts = OptionParser.new do |o| o.banner = "Usage: #{File.basename $0} [options]" o.on_tail("-h", "--help", "Show this help message") do raise opts.to_s end o.on("-i", "--interactive", "Start IRB") { args[:irb] = true } o.on("-d", "--debug", "Debug info") { args[:debug] = true } o.on("-B", "--load-burp=PATH", "Load Burp Jar from PATH") do |b| args[:load_burp] = b end end opts.parse!(ARGV) if jar=args[:load_burp] raise "Load Burp Error: #{jar} did not provide burp.StartBurp" unless Buby.load_burp(jar) end raise "Load Burp Error: Specify a path to your burp.jar with -B" unless Buby.burp_loaded? rescue STDERR.puts $! exit 1 end $DEBUG=true if args[:debug] $burp = Buby.start_burp() if args[:irb] puts "Global $burp is set to #{$burp.inspect}" IRB.start end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
emonti-buby-1.1.1 | bin/buby |
emonti-buby-1.1.2 | bin/buby |
emonti-buby-1.1.3 | bin/buby |