Metadata-Version: 2.4
Name: NTMem
Version: 1.14.0
Summary: Python Memory (this is just a fork of PyMem) but we use NTDLL Functions!
License: MIT
License-File: AUTHORS
License-File: LICENSE
Author: LuauYhen
Author-email: luauyhen@gmail.com
Requires-Python: >=3.8,<4.0.0
Classifier: Environment :: Win32 (MS Windows)
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Programming Language :: Python :: 3.14
Provides-Extra: speed
Requires-Dist: regex (==2024.9.11) ; extra == "speed"
Project-URL: Documentation, https://pymem.readthedocs.io/en/latest/
Project-URL: Repository, https://github.com/lorekeeperyhen1412/NTDLLPyMem
Description-Content-Type: text/markdown

[![GitHub license](https://img.shields.io/github/license/srounet/pymem.svg)](https://github.com/lorekeeperyhen1412/NTDLLPyMem/blob/master/LICENSE)

NTMem
=====

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
=============
Its the same thing as pymem except instead of ``pymem.Pymem`` its ``ntmem.Open``.

Listing process modules
-----------------------

````python
import ntmem

pm = ntmem.Open('python.exe')
modules = list(pm.list_modules())
for module in modules:
    print(module.name)
````

Injecting a python interpreter into any process
-----------------------------------------------

`````python
from ntmem import Open as NTMem

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

pm = NTMem('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()
`````

