# # Copyright (c) 2006-2021 Hal Brodigan (postmodern.mod3 at gmail.com) # # This file is part of ronin. # # Ronin is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # Ronin is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with Ronin. If not, see . # require 'ronin/ui/cli/resources_command' require 'ronin/email_address' module Ronin module UI module CLI module Commands # # Manages {EmailAddress EmailAddresses}. # # ## Usage # # ronin emails [options] # # ## Options # # -v, --[no-]verbose Enable verbose output. # -q, --[no-]quiet Disable verbose output. # --[no-]silent Silence all output. # --[no-]color Enables color output. # -D, --database [URI] The Database URI. # --[no-]csv CSV output. # --[no-]xml XML output. # --[no-]yaml YAML output. # --[no-]json JSON output. # -H, --with-hosts [HOST [...]] # -I, --with-ips [IP [...]] # -u, --with-users [NAME [...]] # -l, --[no-]list Default: true # -i, --import [FILE] # class Emails < ResourcesCommand model EmailAddress summary 'Manages EmailAddresses' query_option :with_hosts, :type => Array, :flag => '-H', :usage => 'HOST [...]', :description => 'Searches for the associated HOST(s)' query_option :with_ips, :type => Array, :flag => '-I', :usage => 'IP [...]', :description => 'Searches for the associated IP(s)' query_option :with_users, :type => Array, :flag => '-u', :usage => 'NAME [...]', :description => 'Searches for the associated UserName(s)' option :list, :type => true, :default => true, :flag => '-l', :description => 'Lists the EmailAddresses' option :import, :type => String, :flag => '-i', :usage => 'FILE', :description => 'Imports EmailAddresses from the FILE' end end end end end