I’m trying do do dll injection using ctype in python , but the return value of this line of code is zero
ctypes.windll.kenrel32.GetProcAddress(k32handle , "LoadLibraryA")
here is the code before I open process to inject :
kernel32 = ctypes.windll.kernel32
h_k32 = kernel32.GetModuleHandleA(“kernel32.dll”)
print "h_k32 = " + h_k32
lp_func = kernel32.GetProcAddress(h_k32 , “LoadLibraryA”)
print "lp_func = " + lp_func
the output is:
h_k32 = -780730368
lp_func = 0
can someone tell me what I’m doing wrong ?
NOTE: I just did try the code above on other machine with same python version and worked,but still not working on my current machine !!