Skip to content

Commit

Permalink
Renamed test/cmd to test/command to avoid confusion with Windows …
Browse files Browse the repository at this point in the history
…`cmd.exe`.
  • Loading branch information
postmodern committed Aug 15, 2024
1 parent 72e72ca commit 48f6ae8
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
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

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

Expand Down

0 comments on commit 48f6ae8

Please sign in to comment.