From 02cd2a9cd9091c492dfee191073c903dc5a165e5 Mon Sep 17 00:00:00 2001 From: jvazquez-r7 Date: Mon, 29 Jun 2015 12:07:37 -0500 Subject: [PATCH] Fix #3951 Update Windows::Registry to use cmd_exec --- lib/msf/core/post/windows/registry.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/msf/core/post/windows/registry.rb b/lib/msf/core/post/windows/registry.rb index 26ee1d7701..720e49dbef 100644 --- a/lib/msf/core/post/windows/registry.rb +++ b/lib/msf/core/post/windows/registry.rb @@ -170,7 +170,7 @@ protected elsif view == REGISTRY_VIEW_64_BIT cmd += " /reg:64" end - session.shell_command_token_win32("#{cmd} #{suffix}") + cmd_exec("#{cmd} #{suffix}") end def shell_registry_cmd_result(suffix, view = REGISTRY_VIEW_NATIVE)