Skip to main content

ProcDump memory dump to Pandas DataFrame

# Download ProcDump: https://learn.microsoft.com/pt-br/sysinternals/downloads/procdump

# I had to make some changes to winappdbg

# If you get an Exception, download https://github.com/hansalemaos/a_pandas_ex_memorydump_to_df/blob/main/winappdbg.zip

# and overwrite all files in Lib\site-packages\winappdbg



$pip install a-pandas-ex-memorydump-to-df



import pandas as pd

from a_pandas_ex_memorydump_to_df import pd_add_memorydf

pd_add_memorydf()



df = pd.Q_df_from_memory(

    pid=9132, procdumppath=r"C:\Program Files\procdump.exe", with_utf8_bytes=False

)  # with_utf8_bytes=True takes much more time!





The method will convert all bytes to every possible format which means, the DataFrame 

might get huge. 







# Notepad.exe

#       aa_address1_hex aa_address2_hex  ...  aa_ascii_int_63  aa_ascii_int_66

# 0            00000000        00010000  ...               46               46

# 1            00000000        00010010  ...               46               46

# 2            00000000        00010020  ...               46               46

# 3            00000000        00010030  ...               46               46

# 4            00000000        00010040  ...               46               46

#                ...             ...  ...              ...              ...

# 64014        00007ff5        fffb0fc0  ...               46               46

# 64015        00007ff5        fffb0fd0  ...               46               46

# 64016        00007ff5        fffb0fe0  ...               46               46

# 64017        00007ff5        fffb0ff0  ...               46               46

# 64018        00007ff5        fffb1000  ...                0                0

# [64019 rows x 304 columns]



# df.size

# Out[16]: 19461776



# explorer.exe

# df

# Out[10]:

#         aa_address1_hex aa_address2_hex  ...  aa_ascii_int_63  aa_ascii_int_66

# 0              00000000        00010000  ...               46               46

# 1              00000000        00010010  ...               46               46

# 2              00000000        00010020  ...               46               46

# 3              00000000        00010030  ...               46               46

# 4              00000000        00010040  ...               46               46

#                  ...             ...  ...              ...              ...

# 3234712        00007ff5        fffb0fc0  ...               46               46

# 3234713        00007ff5        fffb0fd0  ...               46               46

# 3234714        00007ff5        fffb0fe0  ...               46               46

# 3234715        00007ff5        fffb0ff0  ...               46               46

# 3234716        00007ff5        fffb1000  ...                0                0

#

# [3234717 rows x 304 columns]

#

# df.size

# Out[11]: 983353968



# Location of the temp file (procdump)

# df.tmp_file_path

# Out[14]: 'C:\\Users\\Gamer\\AppData\\Local\\Temp\\tmpsypcc1g5.dmp'

# df.tmp_delete_file()  $ file must be closed before

Let's compare the converted values with the ones from CheatEngine

Metadata

Release files for a-pandas-ex-memorydump-to-df 0.11

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for a-pandas-ex-memorydump-to-df 0.11
File Size Uploaded Provenance Actions
a_pandas_ex_memorydump_to_df-0.11.tar.gz 9.1 kB Without provenance Details for a_pandas_ex_memorydump_to_df-0.11.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for a-pandas-ex-memorydump-to-df 0.11
File Interpreter ABI Platform Actions
a_pandas_ex_memorydump_to_df-0.11-py3-none-any.whl Python 3 none any Details for a_pandas_ex_memorydump_to_df-0.11-py3-none-any.whl

Total release size: 19.1 kB

Release files / a_pandas_ex_memorydump_to_df-0.11.tar.gz

Download URL a_pandas_ex_memorydump_to_df-0.11.tar.gz
Size 9.1 kB
Tags Source
SHA-256 checksum
How to use checksums
e45c9b3d17a2088b67f1cbff1b7579a662b5bd67bd7c7b6036a1c37074b68d23
BLAKE2b-256 checksum
How to use checksums
6ae56327980bff9a2218eda4db7b29065eb1ddc189d9b74b19950617d2119e36
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.9.13

Release files / a_pandas_ex_memorydump_to_df-0.11-py3-none-any.whl

Download URL a_pandas_ex_memorydump_to_df-0.11-py3-none-any.whl
Size 10.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a885450697e4fce25c2a16b381835d37b1a154edc88b877ca25958c653f63b8a
BLAKE2b-256 checksum
How to use checksums
8073e36daeccc68247b32e0176b8f5d7c4e0f02c8ca03331bea63efd6a6d3c5e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.9.13

Security for a-pandas-ex-memorydump-to-df 0.11

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.11 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page