Skip to content

Commit 4b351b4

Browse files
committed
adds explicit TARGET setting
1 parent e981d6e commit 4b351b4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/msf/base/sessions/scriptable.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,8 @@ def execute_script(script_name, *args)
9696
# try to run this local exploit, which is likely to be exception prone
9797
begin
9898
new_session = mod.exploit_simple(
99-
'Payload' => local_exploit_opts['PAYLOAD'],
99+
'PAYLOAD' => local_exploit_opts['PAYLOAD'],
100+
'TARGET' => local_exploit_opts['TARGET'],
100101
'LocalInput' => self.user_input,
101102
'LocalOutput' => self.user_output,
102103
'Options' => local_exploit_opts

0 commit comments

Comments
 (0)