lib/ronin/cli/commands/typosquat.rb in ronin-2.0.3 vs lib/ronin/cli/commands/typosquat.rb in ronin-2.0.4

- old
+ new

@@ -27,14 +27,15 @@ # # Finds typo squatted domains. # # ## Usage # - # ronin typosquat [options] DOMAIN + # ronin typosquat [options] [DOMAIN ...] # # ## Options # + # -f, --file FILE Optional file to read values from # --omit-chars Toggles whether to omit repeated characters # --repeat-chars Toggles whether to repeat single characters # --swap-chars Toggles whether to swap certain common character pairs # --change-suffix Toggles whether to change the suffix of words # -A, --has-addresses Print typo squat domains with addresses @@ -48,10 +49,12 @@ # class Typosquat < ValueProcessorCommand include TypoOptions + usage '[options] [DOMAIN ...]' + option :has_addresses, desc: 'Print typo squat domains with addresses' option :registered, desc: 'Print typo squat domains that are already registered' option :unregistered, desc: 'Print typo squat domains that can be registered' @@ -67,10 +70,10 @@ # Processes each word. # # @param [String] domain # A word argument to typo. # - def run(domain) + def process_value(domain) if options[:has_addresses] each_typo_squat(domain) do |typo_domain| if typo_domain.has_addresses? puts typo_domain end