Last active
June 8, 2022 10:08
-
-
Save Wenzel/49c3951f02c747e549bef27a75f897b6 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
import sys | |
import libvirt | |
import logging | |
from auto_config import get_windows_config | |
from libvmi import Libvmi, VMIOS, VMIConfig | |
if __name__ == '__main__': | |
logger = logging.getLogger() | |
logger.setLevel(logging.INFO) | |
domain_name = sys.argv[1] | |
con = libvirt.open("qemu:///system") # change this to your needs | |
domain = con.lookupByName(domain_name) | |
config = get_windows_config(domain) | |
with Libvmi(domain_name, mode=VMIConfig.DICT, config=config) as vmi: | |
vaddr = vmi.translate_ksym2v('PsActiveProcessHead') | |
logging.info('PsActiveProcessHead %s', hex(vaddr)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment