Skip to main content
Quarantined

This project has been quarantined by PyPI admins. It cannot be installed or modified until a security review is complete.

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()

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pymem_win-1.14.5.tar.gz (24.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pymem_win-1.14.5-py3-none-any.whl (29.8 kB view details)

Uploaded Python 3

File details

Details for the file pymem_win-1.14.5.tar.gz.

File metadata

  • Download URL: pymem_win-1.14.5.tar.gz
  • Upload date:
  • Size: 24.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.14.3

File hashes

Hashes for pymem_win-1.14.5.tar.gz
Algorithm Hash digest
SHA256 3ae9730e8cd7c7b4fa90764b3ccdaaa8aea884bdd9a0e6a3e6678d2fa3530331
MD5 f0a4bebf676aacce67037eb9607445b2
BLAKE2b-256 1baf4ea5e2dec38551e798d680bdb45e03c330b0c7955e53380230743ca97ca9

See more details on using hashes here.

File details

Details for the file pymem_win-1.14.5-py3-none-any.whl.

File metadata

  • Download URL: pymem_win-1.14.5-py3-none-any.whl
  • Upload date:
  • Size: 29.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.14.3

File hashes

Hashes for pymem_win-1.14.5-py3-none-any.whl
Algorithm Hash digest
SHA256 005f25d335b96a78c54e7a6d19f27d8bef8aba4c8c4f7cf96d8572280fc2c746
MD5 979babae62ffb1d56a9f697710d351ec
BLAKE2b-256 ac9304257031b9ea3e05d6df7f97f01c34e15c6e285ab7bc9c6c5d5a28c5bb8f

See more details on using hashes here.

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