Update test/modules/post/test/cmd_exec.rb
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user