Skip to content

Commit

Permalink
Update.d
Browse files Browse the repository at this point in the history
  • Loading branch information
altjx committed Sep 2, 2015
1 parent 951f2e7 commit c8ae1dd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions msf-mods/jenkins_command.rb
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,8 @@ def run_host(ip, prefix="cmd.exe /c", try=1)
output = res.scan(/<pre>(.*?)<\/pre>/m)[1][0][12..-1].gsub("err&amp;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)
Expand Down

0 comments on commit c8ae1dd

Please sign in to comment.