We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 204b43b commit f7195fbCopy full SHA for f7195fb
lib/msf/ui/console/command_dispatcher/core.rb
@@ -2524,6 +2524,12 @@ def temp_output.write(msg = '')
2524
2525
# dump the command's output so we can grep it
2526
cmd_output = temp_output.dump_buffer
2527
+
2528
+ # Bail if the command failed
2529
+ if cmd_output =~ /Unknown command:/
2530
+ print_error("Unknown command: #{args[0]}.")
2531
+ return false
2532
+ end
2533
# put lines into an array so we can access them more easily and split('\n') doesn't work on the output obj.
2534
all_lines = cmd_output.lines.select {|line| line}
2535
# control matching based on remaining match_mods (:insensitive was already handled)
0 commit comments