Skip to content

Commit 02cd2a9

Browse files
committed
Fix rapid7#3951 Update Windows::Registry to use cmd_exec
1 parent 656e6f5 commit 02cd2a9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/msf/core/post/windows/registry.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ def shell_registry_cmd(suffix, view = REGISTRY_VIEW_NATIVE)
170170
elsif view == REGISTRY_VIEW_64_BIT
171171
cmd += " /reg:64"
172172
end
173-
session.shell_command_token_win32("#{cmd} #{suffix}")
173+
cmd_exec("#{cmd} #{suffix}")
174174
end
175175

176176
def shell_registry_cmd_result(suffix, view = REGISTRY_VIEW_NATIVE)

0 commit comments

Comments
 (0)