From bcae34ee4f536328f775574e3f3808df4bbe2fdd Mon Sep 17 00:00:00 2001 From: dwelch-r7 Date: Wed, 29 Apr 2026 13:11:06 +0100 Subject: [PATCH] Update test/modules/post/test/cmd_exec.rb Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --- test/modules/post/test/cmd_exec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/modules/post/test/cmd_exec.rb b/test/modules/post/test/cmd_exec.rb index 6f802f0b15..8e84e3cf26 100644 --- a/test/modules/post/test/cmd_exec.rb +++ b/test/modules/post/test/cmd_exec.rb @@ -241,7 +241,7 @@ class MetasploitModule < Msf::Post end it 'should deal with weird windows edge cases' do - skip 'Windows-specific edge cases only apply to Windows sessions' unless session.platform == 'windows' + skip 'Windows-specific edge cases only apply to Windows sessions' unless ['windows', 'win'].include?(session.platform) output = create_process(show_args_binary[:cmd], args: ['"test"', 'test\\"', 'test\\\\"', 'test words\\\\\\\\', 'test words\\\\\\', '\\\\']) valid_show_args_response?(output, expected: [show_args_binary[:upload_path], '"test"', 'test\\"', 'test\\\\"', 'test words\\\\\\\\', 'test words\\\\\\', '\\\\']) end