Skip to content

Commit e3aa838

Browse files
committed
Fix on_session_module_run bug
1 parent 4eb9a16 commit e3aa838

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)