Skip to content

Commit

Permalink
Land #13041, reduces invalid command time by half
Browse files Browse the repository at this point in the history
  • Loading branch information
agalway-r7 committed Mar 10, 2020
2 parents def73fb + 66acec6 commit 0b271f3
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions lib/msf/ui/console/driver.rb
Original file line number Diff line number Diff line change
Expand Up @@ -503,14 +503,16 @@ def unknown_command(method, line)
end
self.busy = false
return
elsif framework.modules.create(method)
super
if prompt_yesno "This is a module we can load. Do you want to use #{method}?"
run_single "use #{method}"
end
end
end

return
if framework.modules.create(method)
super
if prompt_yesno "This is a module we can load. Do you want to use #{method}?"
run_single "use #{method}"
end

return
end

super
Expand Down

0 comments on commit 0b271f3

Please sign in to comment.