I'm using pydbg binaries downloaded here: http://www.lfd.uci.edu/~gohlke/pythonlibs/#pydbg as recommended in previous answers.
I can get the 32-bit version to work with a 32-bit Python interpreter, but I can't get the 64-bit version to work with 64-bit Python. enumerate_processes()
always returns an empty list.. Am I doing something wrong?
Test code:
import pydbg
if __name__ == "__main__":
print(pydbg.pydbg().enumerate_processes())
32-bit working:
>C:\Python27-32\python-32bit.exe
Python 2.7.12 (v2.7.12:d33e0cf91556, Jun 27 2016, 15:19:22) [MSC v.1500 32 bit (Intel)] on win32
...
>C:\Python27-32\python-32bit.exe pydbg_test.py
[(0L, '[System Process]'), (4L, 'System'), <redacted for brevity>]
64-bit gives an empty list:
>python
Python 2.7.12 (v2.7.12:d33e0cf91556, Jun 27 2016, 15:24:40) [MSC v.1500 64 bit (AMD64)] on win32
...
>python pydbg_test.py
[]