Fix if/end

GSoC/Meterpreter_Web_Console
bwatters-r7 2018-03-06 15:01:15 -06:00
parent 4694ef6723
commit 43bc159022
No known key found for this signature in database
GPG Key ID: ECC0F0A52E65F268
1 changed files with 9 additions and 9 deletions

View File

@ -38,17 +38,17 @@ class MetasploitModule < Msf::Post
output = cmd_exec("sleep 1; echo #{test_string}")
output == test_string
end
end
it "should return the full response after sleeping" do
test_string = Rex::Text.rand_text_alpha(4)
test_string2 = Rex::Text.rand_text_alpha(4)
if session.platform.eql? 'windows'
output = cmd_exec('cmd.exe', "/c echo #{test_string} & timeout 1 > null & echo #{test_string2}")
else
output = cmd_exec("echo #{test_string}; sleep 1; echo #{test_string2}")
it "should return the full response after sleeping" do
test_string = Rex::Text.rand_text_alpha(4)
test_string2 = Rex::Text.rand_text_alpha(4)
if session.platform.eql? 'windows'
output = cmd_exec('cmd.exe', "/c echo #{test_string} & timeout 1 > null & echo #{test_string2}")
else
output = cmd_exec("echo #{test_string}; sleep 1; echo #{test_string2}")
end
output.delete("\r") == "#{test_string}\n#{test_string2}"
end
output.delete("\r") == "#{test_string}\n#{test_string2}"
end
it "should return the result of echo 10 times" do