Python - How to get the start/base address of a process?

前端 未结 3 1455
臣服心动
臣服心动 2020-12-17 18:34

How do I get the start/base address of a process? Per example Solitaire.exe (solitaire.exe+BAFA8)

#-*- coding: utf-8 -*-
import ctypes, win32ui, win32process         


        
3条回答
  •  Happy的楠姐
    2020-12-17 19:13

    I think the handle returned by GetModuleHandle is actually the base address of the given module. You get the handle of the exe by passing NULL.

提交回复
热议问题