#!/usr/bin/env ruby # frozen_string_literal: true require 'pwn' require 'optparse' opts = {} OptionParser.new do |options| options.banner = "USAGE: #{$PROGRAM_NAME} [opts] " options.on('-uURL', '--url=URL', '') do |u| opts[:url] = u end options.on('-VVERSION', '--api-version=VERSION', '') do |v| opts[:api_version] = v end options.on('-UUSER', '--username=USER', '') do |u| opts[:username] = u end options.on('-aKEY', '--api-key=KEY', '') do |a| opts[:api_key] = a end options.on('-nNAME', '--enagagement-name=NAME', '') do |n| opts[:engagement_name] = n end options.on('-sTYPE', '--scan-type=TYPE', '/admin/dojo/test_type/ for listing)>') do |t| opts[:scan_type] = t end options.on('-fFILE', '--file-path=FILE', '') do |f| opts[:file] = f end options.on('-lUSER', '--lead-username=USER', '') do |l| opts[:lead_username] = l end options.on('-tTAGS', '--tags=TAGS', '') do |t| opts[:tags] = t end options.on('-mSEVERITY', '--min-severity=SEVERITY', '') do |m| opts[:minimum_severity] = m end options.on('-dDATE', '--scan-date=DATE', '') do |d| opts[:scan_date] = d end options.on('-v', '--[no-]verified', ' e raise e end