Skip to content

Commit 303ed9a

Browse files
committed
Land #4 @jvazquez-r7's bug fix for on_session_module_run
2 parents 4eb9a16 + e3aa838 commit 303ed9a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/msf/base/simple/post.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ def self.job_run_proc(ctx)
9999
# Grab the session object since we need to fire an event for not
100100
# only the normal module_run event that all module types have to
101101
# report, but a specific event for sessions as well.
102-
s = mod.framework.sessions[mod.datastore["SESSION"]]
102+
s = mod.framework.sessions.get(mod.datastore["SESSION"].to_i)
103103
mod.framework.events.on_session_module_run(s, mod)
104104
mod.run
105105
rescue ::Timeout::Error => e

0 commit comments

Comments
 (0)