Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.os.linux.networking > #1143

Re: sniffing and modifying traffic in realtime

From Deux <deux@none.none>
Subject Re: sniffing and modifying traffic in realtime
Newsgroups comp.os.linux.networking
References <s7adnZvusdTD2snSnZ2dnUVZ_qmdnZ2d@westnet.com.au>
Message-ID <BLadncDMZppdi8jSnZ2dnUVZ7sidnZ2d@supernews.com> (permalink)
Date 2012-03-05 13:40 -0600

Show all headers | View raw


On Mon, 05 Mar 2012 15:56:56 +1100, C3 wrote:

> I have an application that communicates over the internet. I would like
> to set up a tool that searches for specific patterns in the outbound
> traffic and modifies them as per a set of rules.

Maybe a mixture of netcat and sed can help you?

A very crude example is below, start it and visit http://localhost:12345 

mkfifo backpipe
netcat -l 12345 0<backpipe | nc en.wikipedia.org 80 | sed -u 's/wiki/sticky/' | sed -u 's/Wiki/Sticky/' 1>backpipe

Back to comp.os.linux.networking | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

sniffing and modifying traffic in realtime "C3" - 2012-03-05 15:56 +1100
  Re: sniffing and modifying traffic in realtime Deux <deux@none.none> - 2012-03-05 13:40 -0600
    Re: sniffing and modifying traffic in realtime "C3" - 2012-03-10 09:44 +1100

csiph-web