Alien has asked for the wisdom of the Perl Monks concerning the following question:

Hello!

Does perl have a "tool" to intercept the execution of functions inside a binary ? I would be interested in something like Python's uhooker .
  • Comment on Does perl have an equivalent to python's uhooker?

Replies are listed 'Best First'.
Re: Does perl have an equivalent to python's uhooker?
by GrandFather (Saint) on Sep 12, 2008 at 08:26 UTC

    What's the bigger picture? What is it you would like to be able to achieve with this 'unhooker'? Prevent the LHC from making black holes perhaps?


    Perl reduces RSI - it saves typing
      I would like to intercept an application's send() function , and modify the data it sends . The application is written in C .

        So where is the Perl content in the question?


        Perl reduces RSI - it saves typing
Re: Does perl have an equivalent to python's uhooker?
by Anonymous Monk on Sep 12, 2008 at 09:17 UTC
    Let me understand, you're talking about http://oss.coresecurity.com/projects/uhooker.htm, a plugin for the win32 debugger OllyDbg? If i were you I would just do it in python, because its easier than rewriting uhooker for perl (or writing a script to talk to perl, or reimplementing server.py in perl).
      I guess this is the only option.
      Thanks
Re: Does perl have an equivalent to python's uhooker?
by Perlbotics (Archbishop) on Sep 12, 2008 at 19:15 UTC

    Just a thought.... to bring this back to Perl again.

    IF you're talking about modifying data that is send() or exchanged via TCP/IP between two hosts, a proxy could be your choice. I haven't checked it myself, but Net-ProxyMod looks promising.