Closed byehack closed 3 years ago
Exception: Python interpreter must be the same architecure of the OS you are running it on.
Exception: Python interpreter must be the same architecure of the OS you are running it on.
i know it. look at second part:
>>> a=pypykatz.go_handledup()
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "c:\Python37x86\lib\site-packages\pypykatz\pypykatz.py", line 114, in go_handledup
from pypykatz.commons.winapi.local.function_defs.live_reader_ctypes import enum_lsass_handles
File "c:\Python37x86\lib\site-packages\pypykatz\commons\winapi\local\function_defs\live_reader_ctypes.py", line 48, in <module>
if getWindowsBuild() >= WindowsMinBuild.WIN_VISTA.value:
File "c:\Python37x86\lib\site-packages\pypykatz\commons\winapi\local\function_defs\live_reader_ctypes.py", line 35, in getWindowsBuild
GetVersionEx( ctypes.byref(version) )
ctypes.ArgumentError: argument 1: <class 'TypeError'>: expected LP_OSVERSIONINFOEXA instance instead of pointer to OSVersionInfo
>>>
i tried to change "pypykatz\commons\winapi\local\function_defs\live_reader_ctypes.py", line 35
to:
def getWindowsBuild():
key = winreg.OpenKey(winreg.HKEY_LOCAL_MACHINE, 'SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\\')
buildnumber, t = winreg.QueryValueEx(key, 'CurrentBuildNumber')
return int(buildnumber)
# version = GetVersionExA()
# return version.dwBuildNumber
it didn't give error but immdiately exit from python process.