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.
2 parents 4bc1159 + 7f822fa commit 1ce1cdfCopy full SHA for 1ce1cdf
lib/msf/ui/console/command_dispatcher/core.rb
@@ -1335,10 +1335,13 @@ def cmd_search(*args)
1335
}
1336
1337
if framework.db and framework.db.migrated and framework.db.modules_cached
1338
- return search_modules_sql(match)
+ 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.")
1342
end
1343
- print_error("Warning: database not connected or cache not built, falling back to slow search")
1344
+ print_warning("Falling back to slow search.")
1345
1346
tbl = generate_module_table("Matching Modules")
1347
[
0 commit comments