Skip to content

Commit

Permalink
Update database connection logic to avoid startup crashes
Browse files Browse the repository at this point in the history
  • Loading branch information
adfoster-r7 committed Nov 14, 2023
1 parent 04361e1 commit ad608f6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/msf/core/payload/windows/encrypted_reverse_tcp.rb
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ def initialize(*args)

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

0 comments on commit ad608f6

Please sign in to comment.