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.
2 parents 4eb9a16 + e3aa838 commit 303ed9aCopy full SHA for 303ed9a
lib/msf/base/simple/post.rb
@@ -99,7 +99,7 @@ def self.job_run_proc(ctx)
99
# Grab the session object since we need to fire an event for not
100
# only the normal module_run event that all module types have to
101
# report, but a specific event for sessions as well.
102
- s = mod.framework.sessions[mod.datastore["SESSION"]]
+ s = mod.framework.sessions.get(mod.datastore["SESSION"].to_i)
103
mod.framework.events.on_session_module_run(s, mod)
104
mod.run
105
rescue ::Timeout::Error => e
0 commit comments