Skip to content

Commit 9870d97

Browse files
authored
Land #18538, Update database connection logic to avoid startup crashes
2 parents 08123a1 + ad608f6 commit 9870d97

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/msf/core/payload/windows/encrypted_reverse_tcp.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ def initialize(*args)
2323

2424
# prevents checks running when module is initialized during msfconsole startup
2525
if framework
26-
unless framework.db.connection_established?
26+
unless framework.db.active
2727
add_warning('A database connection is preferred for this module. If this is not possible, please make sure to '\
2828
'take note of the ChachaKey & ChachaNonce options used during generation in order to set them correctly when '\
2929
'calling a module handler.')

0 commit comments

Comments
 (0)