Skip to main content

GitHub license Build status codecov Discord Documentation Status

Pymem

A python library to manipulate Windows processes (32 and 64 bits).
With pymem you can hack into windows process and manipulate memory (read / write).

Documentation

You can find pymem documentation on readthedoc there: http://pymem.readthedocs.io/

Discord Support

For questions and support, join us on discord https://discord.gg/xaWNac8

Examples

You can find more examples from the community in the Examples from the community of pymem documentation.

Listing process modules

import pymem

pm = pymem.Pymem('python.exe')
modules = list(pm.list_modules())
for module in modules:
    print(module.name)

Injecting a python interpreter into any process

from pymem import Pymem

notepad = subprocess.Popen(['notepad.exe'])

pm = pymem.Pymem('notepad.exe')
pm.inject_python_interpreter()
filepath = os.path.join(os.path.abspath('.'), 'pymem_injection.txt')
filepath = filepath.replace("\\", "\\\\")
shellcode = """
f = open("{}", "w+")
f.write("pymem_injection")
f.close()
""".format(filepath)
pm.inject_python_shellcode(shellcode)
notepad.kill()

Metadata

Release files for Pymem 1.13.1

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

Source distribution (sdist)

Source distribution for Pymem 1.13.1
File Size Uploaded Provenance Actions
Pymem-1.13.1.tar.gz 24.4 kB Without provenance Details for Pymem-1.13.1.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for Pymem 1.13.1
File Interpreter ABI Platform Actions
pymem-1.13.1-py3-none-any.whl Python 3 none any Details for pymem-1.13.1-py3-none-any.whl
Pymem-1.13.1-py3-none-any.whl Python 3 none any Details for Pymem-1.13.1-py3-none-any.whl

Total release size: 82.7 kB

Release files / Pymem-1.13.1.tar.gz

Download URL Pymem-1.13.1.tar.gz
Size 24.4 kB
Tags Source
SHA-256 checksum
How to use checksums
82b50040e2e85179dc702d93d4857b475e0d2eb449bd5f1c50d3f40eb05ae1ad
BLAKE2b-256 checksum
How to use checksums
1401dc9c5304c85e115ac8849ea71e4a98e84075553e7f701e3a3c5677c08a9d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.8.0

Release files / pymem-1.13.1-py3-none-any.whl

Download URL pymem-1.13.1-py3-none-any.whl
Size 28.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
aa0d1c7ca2e6a769c81734b32c6983ff03affcccb99eb6b9b659cdf04b39fcc9
BLAKE2b-256 checksum
How to use checksums
b6f231afcd3cedd5485c1b9a09885f1faaf5fddcef8905e501cce523421d109b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.7.1 CPython/3.8.0 Windows/2012ServerR2

Release files / Pymem-1.13.1-py3-none-any.whl

Download URL Pymem-1.13.1-py3-none-any.whl
Size 29.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ea1649469d853edae1aadb73072dcb807b547a069b9a6f2c9d106d5376bdc638
BLAKE2b-256 checksum
How to use checksums
1cb3d993acf4cbaa8f65c066f14b74a3e06a0edcf80c2dd65edb3241274f6be7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.8.0

Security for Pymem 1.13.1

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

1.13.1 This release

3 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