intercept

Free tools for local HTTP packet sniffing/intercepting?

I'm currently using HTTP Analyzer V5 trial version which expires very soon. Are there any [good] free tools for sniffing and inspecting the contents of HTTP packets, in a similar way to the above mentioned tool? ...

How can I intercept a method call in Boo?

Ruby has method_missing , Python has getattr. Does Boo offer something I can use to intercept method calls? ...

Intercept WM_DELETE_WINDOW on X11?

I'd like to intercept the WM_DELETE_WINDOW message that is posted to a certain selection of windows that an application I'm writing (AllTray), so that I can act on it instead of the application receiving it. I'm currently looking at trying this at the GDK level via gdk_display_add_client_message_filter if possible, but I'd be happy with...

Intercept slice operations in Python

I want to imitate a normal python list, except whenever elements are added or removed via slicing, I want to 'save' the list. Is this possible? This was my attempt but it will never print 'saving'. class InterceptedList(list): def addSave(func): def newfunc(self, *args): func(self, *args) print 'savi...

How can I intercept this constructor call in Groovy?

In a script a method receives a parameter of type File, and sends it to the constructor of File. This blows up because File doesn't have a constructor that takes another file as a parameter. How can I intercept this call, and modify the parameter to parameter.absolutePath ? For example : def x = new File("some_file") ... def meth(de...

Is there any way to intercept print jobs on a local Windows XP machine?

Preferably using a scripting language like Perl or Python, but if I have to go the compiled route then so be it. Essentially what I want to do is make an addition to my company's mail merge system. Right now, the software we use has a rather limited selection of mail merge fields that it exports, but if we could somehow incorporate res...

Intercept outgoing call in Blackberry

hi, we are looking for a way to do the following: user with BB enters a number (or selects a contact and clicks 'send') our app in the background detects the call event our app does something (e.g. blocks the call / makes a call to a different number, etc) can this be done at all? can it be done transparently to the user (i.e. no d...

How to intercept Http traffic

I am trying to develop a C# application that will intercept an outgoing Http request and return a result to an old system. We have a legacy system that makes an Http request to a discontinued web service. I need to intercept the out going request and send it to a new web service. When the response comes back I need to manipulate it then ...

Qt, Getting the text when QPainter::drawText() is called

Hey, I have a QPainter object and would like to obtain the string that is drawn whenever QPainter::drawText is called, as I would if I could connect a slot to that signal (which doesn't exist, so I can't). What would be the best way to do this? I have read some stuff about redirecting the drawText method to a custom one using the setPro...

How could I transform some keypresses into other keypresses?

I have a great idea about cheating on exams. My school uses very old IDE's ( think Turbo Pascal, Turbo C++ , and other 80's ones ), and the thing I'd like to do is this : start my program in the background intercept the keypresses, and instead of sending them directly to the screen, I'd like to read a character from a pre-configured te...

Intercept method call in Objective-C

Can I intercept a method call in Objective-C? How? Edit: Mark Powell's answer gave me a partial solution, the -forwardInvocation method. But the documentation states that -forwardInvocation is only called when an object is sent a message for which it has no corresponding method. I'd like a method to be called under all circumstances, ev...

Firefox plugin that intercepts certain HTTP requests

Is there a way to make a Firefox plugin intercept certain requests and respond to them without hitting the network? Example: every time the browser is about to request http://www.example.com/page.html, the plugin automatically returns "Hello world!" for that page. Cheers! ...

Intercept traffic above the transport layer

Firstly, I'm relatively new to network programming. I want to intercept and delay HTTP traffic before it gets to the server application. I've delved into libnetfilter_queue which gives me all the information I need to delay suitably, but at too low a level. I can delay traffic there, but unless I accept the IP datagrams almost immediatel...

How do I intercept a message box from a ocx put into a vb form

Hi experts... I need your help , i'm trying to quit a msgbox from a ocx , i put the ocx into a vb6.0 form , when i run the proyect appear each 5 minutes a msgbox with the invitation to visit a web page , i want to quit this msgbox , but i´m junior programmer only , and i want to quit this screen fom my exe.. can any help me....this drive...

[macosx]does dlopen call open and read functions?

Hello, I've intercepted(interposed) dlopen function under MacOS X and some other functions. I see how my applications calls dlopen in the log, but don't find anything related to open/read functions after dynamic library was dlopened. How does the system accesses and reads the dynamic library file? I've looked at the source code of dyld,...

How to intercept a static method call in C#

Hi All, I'm trying to implement some sort of Aspect Oriented Programming in C#, where I had some small success but found some important limitations. One of those limitations is the capability to intercept the call to a static method. For example, suppose We have the next object: public class SampleObject { public SampleObjectPro...

Fault injection for .NET apps?

I am wondering if anyone knows of tools or techniques to automatically inject common faults into a running .NET program. Stuff like... Randomly inject an OutOfMemoryException upon allocation Randomly inject FileNotFoundException upon trying to access a files Randomly inject IO or Network exceptions upon using a socket. So I'm really...

Property interception of Grails domain classes

Hello, I would like to intercept calls to properties of domain classes to implement access control. My first try was to override setProperty and getProperty. By doing this, I disabled all nice functionality of Grails domain classes, such as domainClass.properties = params and the automatic conversion of data types. The next try was...

Intercept ActiveX/COM methods

Hello. There is a VB6 application with VSFlexGrid control in it. On My WinXP machine OCX is here: c:\WINDOWS\system32\Vsflex7L.ocx I assume application calls AddItem method of this OCX to add new items to the grid. And I want to intercept this call and obtain data passed to AddItem method. The question is - what is the best way to do ...

Intercept page request behind firewall return altered content with php and apache

I'm providing free wifi service and need an ad to be added to all page requests. Currently I have a router forwarding all http requests to an apache server, which redirects all requests to an index.php page. The index.php page reads the request, fetches the content from the appropriate site, and edits the content to include the ad. The...