diff --git a/README.md b/README.md index 820d85d9a..d173fe27e 100644 --- a/README.md +++ b/README.md @@ -832,6 +832,12 @@ Generate a new Ruby project with a `Gemfile`: $ ronin new project foo ``` +Generates a new [ronin-nmap] Ruby script: + +```shell +$ ronin new nmap scan.rb +``` + Generate a new [nokogiri] Ruby script for parsing HTML/XML: [nokogiri]: https://nokogiri.org/ diff --git a/lib/ronin/cli/commands/new/nmap.rb b/lib/ronin/cli/commands/new/nmap.rb new file mode 100644 index 000000000..7108909b6 --- /dev/null +++ b/lib/ronin/cli/commands/new/nmap.rb @@ -0,0 +1,35 @@ +# frozen_string_literal: true +# +# Copyright (c) 2006-2023 Hal Brodigan (postmodern.mod3 at gmail.com) +# +# 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_relative '../../command' + +require 'ronin/nmap/cli/commands/new' + +module Ronin + class CLI + module Commands + class New < Command + # An alias for `ronin-nmap new`. + # + # @since 2.2.0 + class Nmap < Ronin::Nmap::CLI::Commands::New + end + end + end + end +end diff --git a/man/ronin-new.1.md b/man/ronin-new.1.md index 6e223d65a..59f21a7b6 100644 --- a/man/ronin-new.1.md +++ b/man/ronin-new.1.md @@ -50,6 +50,10 @@ Creates a new project or script. *script* : Generates a new standalone Ruby script. +*nmap* +: Generates a new `ronin-nmap` Ruby script. + See https://github.com/ronin-rb/ronin-nmap#readme + *nokogiri* : Generates a new Nokogiri Ruby script for parsing HTML/XML. See https://nokogiri.org/