Skip to content

Commit

Permalink
handle no datastore
Browse files Browse the repository at this point in the history
  • Loading branch information
busterb committed Dec 29, 2017
1 parent 198aeda commit a444bdb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/msf/base/sessions/command_shell.rb
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,8 @@ def initialize(conn, opts = {})
self.platform ||= ""
self.arch ||= ""
self.max_threads = 1
if !opts[:datastore]["CommandShellCleanupCommand"].blank?
datastore = opts[:datastore]
if datastore && !datastore["CommandShellCleanupCommand"].blank?
@cleanup_command = opts[:datastore]["CommandShellCleanupCommand"]
end
super
Expand Down

0 comments on commit a444bdb

Please sign in to comment.