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

64bit executable or compile instructions #48

Open
Zitt opened this issue Sep 6, 2022 · 2 comments
Open

64bit executable or compile instructions #48

Zitt opened this issue Sep 6, 2022 · 2 comments

Comments

@Zitt
Copy link

Zitt commented Sep 6, 2022

It appears the PAExec as downloaded is a 32bit application which is leading to problems running on remote 64bit Windows server images.

Specifically; I'm trying to run "bcdedit" remotely on a 64bit machine using the following command line on a host computer:
paexec.exe \\<ipaddress> -u <user> -p <password> -n 5 cmd
both the host and the target are running 64bit windows.

bcdedit is not found in the system32 directory. Further debug indicates that the cmd environment is running as 32bit because the environment variable PROCESSOR_ARCHITECTURE returns x86 not AMD64.
PROCESSOR_ARCHITECTURE=x86

I have verified on the running target that bcdedit is present on the system. I think the WOW32 environment is blocking access to BCDEDIT because it is a 64bit tool on this system.

I tried compiling PAExec myself under visual studio 2019; but I'm having the typical growing pains of not having the correct compiler options and complaining about missing header files.

@JonnyTech
Copy link

bcdedit is not found in the system32 directory

Use sysnative instead of system32

@Zitt
Copy link
Author

Zitt commented Sep 7, 2022

I'll try that; but that said, the PsExec tool does have a 64bit version and it does seem to have bcdedit available. So my request to either have detailed compile instructions and/or a 64bit binary is still valid.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants