Skip to content

Commit 30d7de3

Browse files
author
HD Moore
committed
The db search already prints results, return after
1 parent 3ae47e2 commit 30d7de3

File tree

1 file changed

+3
-5
lines changed
  • lib/msf/ui/console/command_dispatcher

1 file changed

+3
-5
lines changed

lib/msf/ui/console/command_dispatcher/core.rb

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1335,13 +1335,11 @@ def cmd_search(*args)
13351335
}
13361336

13371337
if framework.db and framework.db.migrated and framework.db.modules_cached
1338-
sql_results = search_modules_sql(match)
1339-
return sql_results if sql_results # Patches around #7553
1340-
else
1341-
print_warning("Database not connected or cache not built.")
1338+
search_modules_sql(match)
1339+
return
13421340
end
13431341

1344-
print_warning("Falling back to slow search.")
1342+
print_warning("Database not connected or cache not built, using slow search")
13451343

13461344
tbl = generate_module_table("Matching Modules")
13471345
[

0 commit comments

Comments
 (0)