From 48f6ae8ac2b308d3da4e8e441ad77774e5d623a1 Mon Sep 17 00:00:00 2001 From: Postmodern Date: Wed, 14 Aug 2024 18:34:48 -0700 Subject: [PATCH] Renamed `test/cmd` to `test/command` to avoid confusion with Windows `cmd.exe`. --- README.md | 2 +- lib/ronin/payloads/builtin/test/{cmd.rb => command.rb} | 4 ++-- spec/builtin/test/{cmd_spec.rb => command_spec.rb} | 8 ++++---- 3 files changed, 7 insertions(+), 7 deletions(-) rename lib/ronin/payloads/builtin/test/{cmd.rb => command.rb} (95%) rename spec/builtin/test/{cmd_spec.rb => command_spec.rb} (81%) diff --git a/README.md b/README.md index 8102171f..c796c841 100644 --- a/README.md +++ b/README.md @@ -174,7 +174,7 @@ $ ronin-payloads list shellcode/openbsd/x86/bind_shell shellcode/openbsd/x86/exec_shell shellcode/windows/x86_64/cmd - test/cmd + test/command test/js test/open_redirect test/perl diff --git a/lib/ronin/payloads/builtin/test/cmd.rb b/lib/ronin/payloads/builtin/test/command.rb similarity index 95% rename from lib/ronin/payloads/builtin/test/cmd.rb rename to lib/ronin/payloads/builtin/test/command.rb index 284849b9..6770af61 100755 --- a/lib/ronin/payloads/builtin/test/cmd.rb +++ b/lib/ronin/payloads/builtin/test/command.rb @@ -30,9 +30,9 @@ module Test # # @since 0.2.0 # - class CMD < CommandPayload + class Command < CommandPayload - register 'test/cmd' + register 'test/command' summary "A test command payload" description <<~DESC diff --git a/spec/builtin/test/cmd_spec.rb b/spec/builtin/test/command_spec.rb similarity index 81% rename from spec/builtin/test/cmd_spec.rb rename to spec/builtin/test/command_spec.rb index b26f53c8..262524e5 100644 --- a/spec/builtin/test/cmd_spec.rb +++ b/spec/builtin/test/command_spec.rb @@ -1,7 +1,7 @@ require 'spec_helper' -require 'ronin/payloads/builtin/test/cmd' +require 'ronin/payloads/builtin/test/command' -describe Ronin::Payloads::Test::CMD do +describe Ronin::Payloads::Test::Command do it "must inherit from Ronin::Payloads::CommandPayload" do expect(described_class).to be < Ronin::Payloads::CommandPayload end @@ -9,8 +9,8 @@ describe ".id" do subject { described_class } - it "must equal 'test/cmd'" do - expect(subject.id).to eq('test/cmd') + it "must equal 'test/command'" do + expect(subject.id).to eq('test/command') end end