qb-0 / pyMeow

Python Game Hacking Library
MIT License
356 stars 39 forks source link

feat: allow root on read ops and checkRoot on process_vm_readv/writev #48

Closed Eein closed 7 months ago

Eein commented 7 months ago

This PR removes checkRoot from read/non-root ops and adds them to:

Per the linux mans:

Permission to read from or write to another process is governed
       by a ptrace access mode PTRACE_MODE_ATTACH_REALCREDS check; see
       [ptrace(2)](https://man7.org/linux/man-pages/man2/ptrace.2.html).`

See: https://man7.org/linux/man-pages/man2/process_vm_readv.2.html

I also prepared a NixOS flake to test and build:

https://gist.github.com/Eein/c351a72ef55c9f3fb4adf500c0e2e833

qb-0 commented 7 months ago

Thank you