lib/ronin/cli/commands/dns_proxy.rb in ronin-2.1.0.rc1 vs lib/ronin/cli/commands/dns_proxy.rb in ronin-2.1.0

- old
+ new

@@ -15,10 +15,11 @@ # You should have received a copy of the GNU General Public License # along with Ronin. If not, see <https://www.gnu.org/licenses/>. # require 'ronin/cli/command' +require 'ronin/core/cli/logging' require 'ronin/dns/proxy' module Ronin class CLI module Commands @@ -43,10 +44,12 @@ # # @since 2.1.0 # class DnsProxy < Command + include Core::CLI::Logging + usage '[options] [HOST] PORT' option :nameserver, short: '-n', value: { type: String, @@ -102,9 +105,10 @@ # Runs the `ronin dns-proxy` command. # def run(host='127.0.0.1',port) port = port.to_i + log_info "Listening on #{host}:#{port} ..." DNS::Proxy.run(host,port,**proxy_kwargs) end # # The keyword arguments for `Ronin::DNS::Proxy.run`.