Questions tagged [interception]
174 questions
1
vote
1 answer
Webextension: How to transparently modify XMLHttpRequests
My goal
… is to have a web extension (in Firefox for now) that intercepts and modified XMLHttpRequests issues by a site as transparently as possible. Best case is that the extension is undetectable by the site even when explicitly looking for it.…

Rycec
- 31
- 3
1
vote
1 answer
Is there a way to run code before the debugger is paused in Visual Studio 2019/C#?
It's a wierd use case, but here's why:
I'm developing an app that uses a keyboard driver that intercepts the scan codes from attached keyboards. (https://www.oblita.com/interception.html)
The dll is being wrapped in a C# wrapper and used in my…

awwwwwjay
- 35
- 3
1
vote
1 answer
Get Entity Type in Interception for EntityFramework
I got some problems with interception in Entity-Framework. In my scenaryo I want to modify the select sql statemant before it is executed by the sql server. I can see the command when i use interception but is there an easy way to get the entitytype…

Michael
- 53
- 5
1
vote
1 answer
Linux, kprobes/kretprobes: a way to recover [from registers?] probe function's arguments?
/*kprobe_example.c*/
#define FUNCNAME alloc_file /* Find something better. printk() isnt recommended */
#include
#include
#include
#include
#include
/*For each…

kagali-san
- 2,964
- 7
- 48
- 87
1
vote
0 answers
Spring AOP : Intercepting spring framework class
Can I intercept spring framework class using my custom Aspect like :
Intercepting all public methods of : org.springframework.integration.mail.Pop3MailReceiver
@Aspect
public class Pop3MailReceiverAspect {
@AfterReturning(pointcut="execution(*…

Abdul Mohsin
- 105
- 7
1
vote
1 answer
Ninject interception extension with WCF gives me an "Object reference not set to an instance of an object." error
I'm getting started with the Ninject interception extension and can't get it to work in my WCF service. With the WCF extension, ninject works fine, it's the interception that's giving me trouble. Maybe i'm doing it wrong? When I try to add the…

Syg
- 403
- 4
- 17
1
vote
0 answers
How does the svcutil (WCF) create task based methods for every service?
I have a system with about 10 WCF services.
The services communicate between themselves using a ChannelFactory.
The ChannelFactory is used behind an interceptor.
Here's a sample of how the code looks:
var service =…

Amir Popovich
- 29,350
- 9
- 53
- 99
1
vote
0 answers
ninject interception with attribute
I'm trying to use ninject interception in my project for logging exceptions. On the line
public override void Load()
{
this.Bind().To().Intercept().With();
}
I have got an…

Sergii Fasolko
- 188
- 1
- 7
1
vote
0 answers
Using hibernate-envers with custom annotation
Im my current project we have a need to distribute a JAR with entity classes, to be used with a REST client, in a thin way (thinner as possible). The annotations @Entity (from JPA) are not a problem, but when the same classes are annotated with…

pedrociarlini
- 61
- 8
1
vote
1 answer
Simple Injector interception in async/await code
I am starting a new project and am thinking of using Simple Injector interception (https://simpleinjector.readthedocs.io/en/latest/InterceptionExtensions.html) for tracing method entry/exit and logging parameters and return values etc. I have used…

user2321864
- 2,207
- 5
- 25
- 35
1
vote
2 answers
Interception not working as expected with Entity Framework 6
I'm trying to follow the interception example shown here to get it working with EF 6 but running into a problem with the function RewriteFullTextQuery as shown in Figure 1. The interception seems to work but it does not actually execute the logic in…

methon.dagger
- 505
- 9
- 28
1
vote
0 answers
Ninject DynamicProxyModule won't work if loaded after kernel is created
I'm having an issue with DynamicProxyModule and Ninject. I want to load all modules that are present in the root directory of my program (without having to write copious amounts of code), but the DynamicProxyModule doesn't work if it loaded after…

Philip Barcelon
- 43
- 1
- 5
1
vote
0 answers
intercept native Android library (cf. *.so / Android NDK)
I'm trying to develop an Cydia Substrate module to intercept a native function of a JNI library. Unfortunately it turned out that CS does not support newer Android versions like Marshmallow, while the Xposed framework does not suppport native code…

Nils
- 1,705
- 6
- 23
- 32
1
vote
4 answers
Intercept BIG application execution after DLL injection
I must intercept execution in very big application in many places.
What programs I can use to do this? What techniques exists for this problems?
Manually reverse engineering and adding hooks is maybe not optimal solution for this problem, because…

Svisstack
- 16,203
- 6
- 66
- 100
1
vote
2 answers
Notify on webView.loadDataWithBaseURL()
I am trying to inject some Javascript into my web view immediately after loading data into my web view via webView.loadDataWithBaseURL() but I have no way of knowing when the data is actually finished loading. Is this method synchronous? Can I just…

Cliff
- 10,586
- 7
- 61
- 102