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 198aeda commit a444bdbCopy full SHA for a444bdb
lib/msf/base/sessions/command_shell.rb
@@ -51,7 +51,8 @@ def initialize(conn, opts = {})
51
self.platform ||= ""
52
self.arch ||= ""
53
self.max_threads = 1
54
- if !opts[:datastore]["CommandShellCleanupCommand"].blank?
+ datastore = opts[:datastore]
55
+ if datastore && !datastore["CommandShellCleanupCommand"].blank?
56
@cleanup_command = opts[:datastore]["CommandShellCleanupCommand"]
57
end
58
super
0 commit comments