Advertisement
Guest User

Untitled

a guest
Jun 27th, 2017
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Ruby 0.49 KB | None | 0 0
  1. require 'watir'
  2. require 'optparse'
  3.  
  4. options = ()
  5.  
  6. optparse = OptionParser.new
  7. opts.banner = "Usage: rBiez.rb [options]" do
  8.     options[:verbose] = false
  9.     opts.on( '-v', '--verbose', "Tells ya more shit" ) do
  10.         options[:verbose] = true
  11.     end
  12.     opts.on( '-u', '--url URL', "The url to h4x dumbphace) do
  13.         options[:url] = url
  14.     end
  15.     opts.on( '-h', '--help', "display some help" ) do
  16.         puts opts
  17.         exit
  18.     end
  19. end
  20.  
  21. ie = Watir::IE.new
  22. ie = Watir::IE.start(options[:url] + "'")
  23. puts ie.html
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement