-
Notifications
You must be signed in to change notification settings - Fork 117
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
Remote script execution fails on Microsoft Store builds of python #72
Comments
Hi ! Thank you for the issue, indeed the injection fail for Microsoft Store builds looks like a bug. At first glance, I don't think the space in the DLL path would be the cause of the bug. I would rather lean towards a path problem, where the loader cannot find the dependencies of this For the Cheers, PS: The injection with space works for me, so the MS-store bug is likely due to something else !
|
Thanks for taking the time to explain the Ldr behavior to me @hakril. This makes perfect sense! I'll do a little investigation on the dll loading and see if I can't propose a fix. |
Hello,
I've noticed that Microsoft Store builds of python fail when trying to execute python within remote processes (Windows 11 64-bit, Python 3.12 & 3.13 tested).
After activating python from the Windows store, reproducing is as simple as:
Which results in:
The thing that jumps out at me on store installations is there is a space in the DLL paths, whereas standard installs don't have one by default. Though take with a grain of salt because admittedly I haven't dug into the root cause yet.
I would be happy to dig in and submit a patch, but beforehand I wanted to understand a separate behavior in the injector. It seems that
rpeb.Ldr
is always null during DLL injection in my case, which also seems fishy.I think there might be possibly two fixes here? One for
perform_manual_getproc_loadlib*
on Microsoft Store python builds, and one forLdr
being absent? I'd appreciate a gut-check that this sounds correct.Thanks
The text was updated successfully, but these errors were encountered: