This file contains hidden or 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
import sys | |
import struct | |
from ctypes import * | |
# ELF Header Definitions | |
ELF_SIGNATURE = b'\x7fELF' | |
ELFCLASSNONE = 0 | |
ELFCLASS32 = 1 | |
ELFCLASS64 = 2 |
This file contains hidden or 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
import sys | |
import struct | |
MDMP_HEADER_SIZE = 4096 | |
MDMP_SIGNATURE = b'MDMP' | |
MDMP_DIRECTORY_SIZE = 12 | |
MDMP_STREAM_TYPE_MEMORY_LIST = 0x5 | |
MDMP_STREAM_TYPE_MEMORY_64_LIST = 0x9 |