Skip to content

Commit 8f6fe87

Browse files
author
Brent Cook
committed
fix assignment
1 parent 13b06db commit 8f6fe87

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/msf/base/sessions/scriptable.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ def legacy_script_to_post_module(script_name)
101101
#
102102
def execute_script(script_name, *args)
103103
post_module = legacy_script_to_post_module(script_name)
104-
script_name == post_module if !post_module.nil?
104+
script_name = post_module if !post_module.nil?
105105
mod = framework.modules.create(script_name)
106106
if mod
107107
# Don't report module run events here as it will be taken care of

0 commit comments

Comments
 (0)