3 ms·
Inject code into running Python processes (2017)
- dang 7y ago2014 thread: https://news.ycombinator.com/item?id=8161586 https://news.ycombinator.com/item?id=8161586
- pimterry 7y agoVery cool! Are there details anywhere on how this works?
- bibyte 7y agoSee this file: https://github.com/lmacken/pyrasite/blob/develop/pyrasite/injector.py https://github.com/lmacken/pyrasite/blob/develop/pyrasite/in... It uses GDB to attach to the process. And then evaluates the code inside the process using GDB.