Sha256: 6a9f02e383e6bcf43d43c37e205bc57691e1b746957c3f2665b2c3043fc9d349
Contents?: true
Size: 1 KB
Versions: 2
Compression:
Stored size: 1 KB
Contents
# frozen_string_literal: true require "colorize" require "digest" require "fileutils" require "http" 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: 100,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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
miteru-0.9.2 | lib/miteru/cli.rb |
miteru-0.9.1 | lib/miteru/cli.rb |