pymem: python memory access made easy
Project description
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()
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Pymem-1.8.3.tar.gz
(22.3 kB
view hashes)
Built Distribution
Pymem-1.8.3-py2.py3-none-any.whl
(26.8 kB
view hashes)
Close
Hashes for Pymem-1.8.3-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b739e861a3ce69e4c1647d25d1db17eaf72d1eb8695542660824cc11a98e850e |
|
MD5 | 0d10c1af00f0e526d274821d33ae25bb |
|
BLAKE2b-256 | d0893d3990f063186bc6d835c2c1d628b65ce8d0850ad5ac2e96c0db1658235c |