Baike.dev
All toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
M

memorpy

> 编程语言
Open source

Python library using ctypes to search/edit windows / linux / macOS / SunOS programs memory

781 stars0 likes0 views
WebsiteGitHub

About

Python library using ctypes to search/edit windows / linux / macOS / SunOS programs memory

memorpy

Python library using ctypes to search/edit windows/linux/OSX/SunOS programs memory.

install

pip install https://github.com/n1nj4sec/memorpy/archive/master.zip

usage examples :

In this example open a notepad.exe and type in some text we will edit from memory !

…

Look back at your notepad and the text should be changed ! :) A quicker way to do this could be :

>>> mw.umem_replace("hello","pwned")

Some other interesting features like searching for different values types in memory and monitor their changes are also implemented through the Locator class. For example if you are looking to cheat in a game and you start with 200 ammo, you could do something like :

>>> lo=Locator(mw)
>>> lo.feed(200)
...
,
,
,
...]}

Use some ammo and "refeed" the locator (do this a couple of times until there is one result left)

>>> lo.feed(199)
{'double': [],
 'float': [],
 'int': [],
 'long': [],
 'short': [],
 'uint': [],
 'ulong': [],
 'ushort': []}
>>> a=_["int"][0]
>>> a.read()
199
>>>a.write(999999)
1

Now you have infinite ammo :o)

I hope this code will be useful to someone.

Have fun !

Other examples

Have a look at mimipy that dumps passwords from various processes memory

Contact

by mail: [email protected]
on Twitter: Follow me on twitter

If some of you want to participate or send me a feedback, don't hesitate :-)

This project is a personal development, please respect its philosophy don't use it for evil purpose !

Issues· 12 open

View all issuesOpen on GitHub

No open issues yet, or sync has not completed.

> Tags

Pythonctypeshacklinuxmacosx

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 17, 2026
Category编程语言
PricingOpen source

> Related tools

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言