Sha256: dadd3fb542ed9d76730bb206300fab7bb1add27e1a592bdf1bd3bd6b4b0f9692

Contents?: true

Size: 952 Bytes

Versions: 12

Compression:

Stored size: 952 Bytes

Contents

# frozen_string_literal: true

require "thor"

module Miteru
  class CLI < Thor
    method_option :auto_download, type: :boolean, default: false, desc: "Enable or disable auto-download of compressed file(s)"
    method_option :directory_traveling, type: :boolean, default: false, desc: "Enable or disable directory traveling"
    method_option :download_to, type: :string, default: "/tmp", desc: "Directory to download file(s)"
    method_option :post_to_slack, type: :boolean, default: false, desc: "Post a message to Slack if it detects a phishing kit"
    method_option :size, type: :numeric, default: 100, desc: "Number of urlscan.io's results. (Max: 10,000)"
    method_option :threads, type: :numeric, default: 10, desc: "Number of threads to use"
    method_option :verbose, type: :boolean, default: true
    desc "execute", "Execute the crawler"
    def execute
      Crawler.execute options.map { |k, v| [k.to_sym, v] }.to_h
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
miteru-0.12.0 lib/miteru/cli.rb
miteru-0.11.3 lib/miteru/cli.rb
miteru-0.11.2 lib/miteru/cli.rb
miteru-0.11.1 lib/miteru/cli.rb
miteru-0.11.0 lib/miteru/cli.rb
miteru-0.10.2 lib/miteru/cli.rb
miteru-0.10.1 lib/miteru/cli.rb
miteru-0.10.0 lib/miteru/cli.rb
miteru-0.9.6 lib/miteru/cli.rb
miteru-0.9.5 lib/miteru/cli.rb
miteru-0.9.4 lib/miteru/cli.rb
miteru-0.9.3 lib/miteru/cli.rb