Update test/modules/post/test/cmd_exec.rb

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
dwelch-r7
2026-04-29 13:11:06 +01:00
committed by GitHub
parent 6df54a639e
commit bcae34ee4f
+1 -1
View File
@@ -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