in reply to Intercept segmets before arriving to the TCP stack from App Layer

You don't say what operating system you are using and what problem you are trying to solve, but the easy solution is to set up a proxy and make your browser use that proxy. There is a convenient proxy package availble with HTTP::Proxy. On the other, harder side, there is the low-level manipulation possible with libnet and libpcap (Net::PCap), both of which have injection and manipulation callbacks, and if you're using a BSD (-based operating system), you might find the port filters by Stephanie Wehner useful.

  • Comment on Re: Intercept segmets before arriving to the TCP stack from App Layer

Replies are listed 'Best First'.
Re^2: Intercept segmets before arriving to the TCP stack from App Layer
by mosh (Scribe) on Nov 10, 2004 at 10:11 UTC
    Hi,
    Thanks for the swift answer.

    I'm planning testing system that takes captured data on L7 and injects it as a real data, so I have to be able manipulating the TCP stack.
    I still not sure about the OS, it will be either WinXP or LinuxRH9.
    Do you think it will be much difficult to do it with WinXP and active perl ?

    The example you gave above of S.Wehber is great !
    Is it only valid on BSD OS ?
    Thanks,
    Mosh.