4 ms·
The title is a bit misleading, since Pyringe is "only" able to inject Python code into Python processes. Aside of that, I think this could prove useful for Cloj
by dindresto 13y ago
The title is a bit misleading, since Pyringe is "only" able to inject Python code into Python processes.
Aside of that, I think this could prove useful for Clojure-like live coding.
- seanmcdirmid 13y agoLooks more like being able to get a meta-REPL going in a running process...as could be done with LISP and Smalltalk since the 70s.
- wslh 13y agoShameless plug: my company develops Deviare[1]: "code interception for dummies". It allows to intercept a Windows application from any COM capable programming language. We have interesting code samples such as capturing video intercepting DirectX[2] and hooking into SQL Server to abort unsecure (e.g. injection attacks) queries[3]. 1. http://www.nektra.com/products/deviare-api-hook-windows/deviare-in-process/ http://www.nektra.com/products/deviare-api-hook-windows/devi... 2. http://blog.nektra.com/main/2013/07/23/instrumenting-direct3d-applications-to-capture-video-and-calculate-frames-per-second/ http://blog.nektra.com/main/2013/07/23/instrumenting-direct3... 3. http://blog.nektra.com/main/2013/06/26/sql-server-interception-and-sql-injection-attacks-prevention/ http://blog.nektra.com/main/2013/06/26/sql-server-intercepti...
- jevinskie 13y agoDo you know of anything similar for amd64 Mac/Linux? Not PLT hooking but the sort of deal where the beginning of the function is overwritten with a jump to the hook. The overwritten instructions in the original function are copied to a mmap()ed area of memory that jumps back past the hook jump. I found an old copy of MobileSubstrate that has partial support for i386 and x86_64 (which works fine on Linux since the ABI is the same as Mac). I found out that it doesn't support all the possible jumps in the overwritten area. I've been slowly patching and improving it[0] but I'd rather be spending my time hooking stuff than writing the hooker. [0]: https://github.com/jevinskie/substrate https://github.com/jevinskie/substrate
- wslh 13y agoI forwarded your comment to the right people in my company. In the meantime have you tried to ask these kind of questions in http://reverseengineering.stackexchange.com/ http://reverseengineering.stackexchange.com/
- kranner 13y agohttps://github.com/rentzsch/mach_override https://github.com/rentzsch/mach_override https://github.com/rentzsch/mach_inject https://github.com/rentzsch/mach_inject