title: Howto intercept tcp packet and modify in the fly?
body: <p>Howto intercept tcp packet and modify in the fly without proxy in Linux (Ubuntu)? by example, capture packet as wireshark but modify the packets.</p>
  
  <p>Need capture, search and replace packets, but example:</p>
  
  <p>Search regex <code>"/(&lt;form\s+.*?&gt;)/i"</code>, replace by <code>"$1\n&lt;input name=\"newinput\"&gt;"</code></p>
  
  <p>Only for local packets using ftp, smtp, http, etc. Howto made this?</p>