-
Notifications
You must be signed in to change notification settings - Fork 106
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
.load pykd.pyd is wrong #18
Comments
if pykd.pyd fails to load, then please check the following items:
thanks |
0:009> .load pykd.pyd Same issue. I tried all the things listed above. windbg:10.0.14321.1024 X86 |
I'm trying to help, but this is not really a windbglib or mona.py issue. pykd.pyd must be placed in the winext folder. On my machine (Windows 10, Windbg 10), the file is in
The file is about 1387008 bytes large Directory of C:\Program Files (x86)\Windows Kits\10\Debuggers\x86\winext 03/03/2014 10:58 1 387 008 pykd.pyd When I right click on the file, and check the "properties", it does not indicate (anymore) that the file was locked because it was downloaded from the internet. Next, I run windbg.exe from within C:\Program Files (x86)\Windows Kits\10\Debuggers\x86. Loading pykd works every time.
If you continue to have issues loading pykd.pyd, please feel free to also contact the pykd developers for advise. |
Something had gone wonky with my Python. I cleaned everything out again and setup. Not sure what the issue was but it was probably a cross architecture problem. Thanks for the help! |
cool, thanks for confirming |
One probable reason is that you're running Python 64-bit version. Make sure the versions of Windbg, pykd.pyd, and Python are all the same. |
Yes! Fuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuu After 3 hours, I ended up on the official pykd repo: https://githomelab.ru/pykd/pykd , where they suggest to use bootstrapper: So instead of If I'm not mistaken, as I understand, the error Basically, everyone on the Internet got the installation process for pykd wrong(they tell you to run I used Python 3.7 32 bit, and mona didn't work with that. The only way mona finally worked is when I installed Python 2.7 32-bit, specific pykd.pyd version mentioned on this repo, and not the last version, and then manually selected Python 2.7 interpreter for pykd.pyd using command Took like ~4.5 hours total to finally make mona work: Had to work through 8 errors total or something. |
@KulaGGin -- I'm having a similar issue. Are you saying that the 32-bit pykd.dll works with python 2.7 but not 3.x? |
iirc, pykd works with versions they claim on their repo: 2.7, 3.5-3.9. But I additionally needed mona, and mona only works on 2.7. Just go to official repo: https://githomelab.ru/pykd/pykd Install pykd. Install and run bootstrapper, and choose respective installed Python on your machine depending on what IDA and WinDBG you're using, and depending on either you're additionally using mona with it. So, for me, I had to choose Python 2.7 32 bit, because that's the only version that will work for the 32-bit chain of IDA7, WinDBG, Pykd and mona. If you don't need mona, I think Python 3.5-3.9 32-bit should work for the 32-bit chain of IDA7, WinDBG and Pykd. |
Thanks @KulaGGin . I'm still having problems though. Using 32-bit everything: 32-bit windbg, 32-bit python (3.9), 32-bit pykd, 32-bit pykd bootstrapper, debugging at 32-bit application... I've even tried building pykd and the bootstrapper from source just in case, as well as checking everything in my registry in case something points to my 64-bit python. Still getting "failed to load module". It works fine for 64-bit. I'm trying out Windbg Preview right now. It has javascript scripting available. I would certainly prefer python scripting, but it might do for my purposes. |
For anyone else finding this thread and still having problems: make sure you have python 2.7.16. That was my issue. I had Python 2.7.0 which did not work, but when I switched to version 2.7.16 it I was then able to do |
Awesome, thanks so much for the helpful info! |
0:001> .load pykd.pyd
The call to LoadLibrary(pykd.pyd) failed, Win32 error 0n126
"找不到指定的模块。"
Please check your debugger configuration and/or network access.
but i am in internet and set the symbol path
The text was updated successfully, but these errors were encountered: