Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

JS failed: %windir%\sysnative\cmd.exe #1403

Closed
pjarayuzu opened this issue Nov 25, 2021 · 1 comment
Closed

JS failed: %windir%\sysnative\cmd.exe #1403

pjarayuzu opened this issue Nov 25, 2021 · 1 comment
Labels
fixed in next build Fixed in the next Sandboxie version WoW64 "Windows 32-bit on Windows 64-bit" subsystem

Comments

@pjarayuzu
Copy link

Describe the bug
Some software (e.g. AliDrive) use JS command %windir%\sysnative\cmd.exe /c %windir%\System32\REG QUERY HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Cryptography /v MachineGuid to get MachineGuid. It does not work.

image

To Reproduce
Steps to reproduce the behavior:
1.Just Start it

System details and installed software

  • Windows 10 Pro 21H1 64-bit
  • Sandboxie Plus 0.9.8d

Software Link

Sandboxie configuration
Installed inside the Sandboxie with default configuration.

@pjarayuzu pjarayuzu reopened this Nov 25, 2021
@DavidXanatos DavidXanatos added ToDo To be done under investigation High priority To be done as soon as possible and removed ToDo To be done labels Dec 11, 2021
@DevSplash
Copy link
Contributor

DevSplash commented Jan 2, 2022

Error: The system could not find the specified registry key or value

It looks like the following command failed to execute:
%windir%\sysnative\cmd.exe /c %windir%\System32\REG.exe QUERY HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Cryptography /v MachineGuid(in 64-bit operating systems)
The value of HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Cryptography\MachineGuid cannot be read. It was incorrectly redirected to HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Microsoft\Cryptography\MachineGuid, there is no such value here.


There seems to be another problem.
In some cases nodejs in sandbox can't find cmd.exe when executing commands using child_process.

'C:\Windows\sysnative\cmd.exe' is not recognized as an internal or external command, operable program or batch file.

The reason is that %windir%\sysnative is not recognized in this case.

@DavidXanatos

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
fixed in next build Fixed in the next Sandboxie version WoW64 "Windows 32-bit on Windows 64-bit" subsystem
Projects
None yet
Development

No branches or pull requests

3 participants