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 e88c4f1 commit 9017aa0Copy full SHA for 9017aa0
lib/msf/ui/console/command_dispatcher/core.rb
@@ -101,6 +101,9 @@ class Core
101
# Constant for disclosure date formatting in search functions
102
DISCLOSURE_DATE_FORMAT = "%Y-%m-%d"
103
104
+ # Constant for a retry timeout on using modules before they're loaded
105
+ CMD_USE_TIMEOUT = 3
106
+
107
# Returns the list of commands supported by this command dispatcher
108
def commands
109
{
@@ -2421,7 +2424,7 @@ def cmd_use(*args)
2421
2424
mod = framework.modules.create(mod_name)
2422
2425
unless mod
2423
2426
# Try one more time; see #4549
- sleep 3
2427
+ sleep CMD_USE_TIMEOUT
2428
2429
2430
print_error("Failed to load module: #{mod_name}")
0 commit comments