From c8ae1dd52f6dc2e23923a6668c1cc5428300e70d Mon Sep 17 00:00:00 2001 From: Alton Johnson Date: Wed, 2 Sep 2015 18:05:53 -0500 Subject: [PATCH] Update.d --- msf-mods/jenkins_command.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/msf-mods/jenkins_command.rb b/msf-mods/jenkins_command.rb index 06ddadc..f0f984c 100644 --- a/msf-mods/jenkins_command.rb +++ b/msf-mods/jenkins_command.rb @@ -58,8 +58,8 @@ def run_host(ip, prefix="cmd.exe /c", try=1) output = res.scan(/
(.*?)<\/pre>/m)[1][0][12..-1].gsub("err&gt;", "")
       if output.include? "org.eclipse.jetty.server." and try == 1
         run_host(ip, "", 2)
-      elsif output.include? "org.eclipse.jetty.server." and try == 2
-        print_error("The peovided command is not valid. Try again.")
+      elsif (output.include? "org.eclipse.jetty.server." and try == 2) or output.include? "not recognized as"
+        print_error("The provided command is not valid. Try again.")
       else
         print_good("The command executed. Output:")
         print_good(output)