interposing

Interposing on Java Class Methods (without interfaces)

情到浓时终转凉″ 提交于 2020-01-24 19:56:08
问题 I'd like to interpose between class methods to dynamically extends an object. I already know about the java.lang.reflect.Proxy stuff, but it's way too limited to do real interposing. From Using java.lang.reflect.Proxy to Interpose on Java Class Methods, the first limitation is : (...) the method must be called through an instance of the proxy class. So nested methods calls, for instance, would not be intercepted. And the worst one : (...) the method must have been defined in an Interface that

Stack Smashing in Java Interposer

半腔热情 提交于 2019-12-10 18:38:48
问题 I am writing a Java interposer to modify network communication related system calls. Basically, I want to modify the IP and port of the intended recipient. The code works correctly on my laptop, but on university PC, it gives a stack smashing error as: *** stack smashing detected ***: java terminated ======= Backtrace: ========= /lib/i386-linux-gnu/libc.so.6(__fortify_fail+0x45)[0xb7702dd5] /lib/i386-linux-gnu/libc.so.6(+0xffd8a)[0xb7702d8a] /home/mwaqar/vibe/ldinterposer_2.so(+0x28e4)

Interposing of OS X system calls

℡╲_俬逩灬. 提交于 2019-12-01 18:21:25
I need to interpose (get my functions called instead of the original functions) some OS X system calls to overcome a flaw in a piece of closed-source software. Preferably, the resulting solution would work under 10.5 (Leopard) and newer, but I might be able to require 10.6 (Snow Leopard) if the argument were strong enough. Preferably, the resulting solution would be an executable, but I might settle for a script. Preferably, the resulting solution would be able to interpose ("steal the vectors") even after the target application is running, but I could settle for a technology that must inject

Interposing of OS X system calls

流过昼夜 提交于 2019-12-01 18:18:28
问题 I need to interpose (get my functions called instead of the original functions) some OS X system calls to overcome a flaw in a piece of closed-source software. Preferably, the resulting solution would work under 10.5 (Leopard) and newer, but I might be able to require 10.6 (Snow Leopard) if the argument were strong enough. Preferably, the resulting solution would be an executable, but I might settle for a script. Preferably, the resulting solution would be able to interpose ("steal the