srounet / Pymem

A python library for windows, providing the needed functions to start working on your own with memory editing.
MIT License
314 stars 47 forks source link

Cross-platform Pymem #72

Open qb-0 opened 3 years ago

qb-0 commented 3 years ago

I've made a few test's on linux and realized that a lot of code from Pymem can be used on linux aswell. Could be some nice feature for the future.

https://github.com/qb-0/PymemLinux

StarrFox commented 2 years ago

I think this would be pretty cool, but there are a few things I'm not sure how we would do such as allocating and freeing memory and injecting dlls

qb-0 commented 2 years ago

Unfortunately there are no native ways to do that. Operations like that work with injecting syscalls into a remote process with ptrace.

I've made some first tests with it on my library. https://github.com/qb-0/pyMeow/blob/master/src/ptrace.nim#L428 I could give it a try in python as well.