Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #12478
| Path | csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!aioe.org!feeder.news-service.com!newsfeed.xs4all.nl!newsfeed5.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail |
|---|---|
| Return-Path | <msarro@gmail.com> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.008 |
| X-Spam-Evidence | '*H*': 0.98; '*S*': 0.00; 'socket': 0.04; 'subject:when': 0.07; 'python': 0.08; 'am,': 0.12; 'subject:file': 0.13; 'file).': 0.16; 'jumping': 0.16; 'subject: \n ': 0.16; 'subject:interface': 0.16; 'subject:port': 0.16; 'cc:addr:python- list': 0.16; 'this:': 0.16; 'url:blog': 0.16; 'wrote:': 0.16; 'wed,': 0.17; 'linux': 0.17; 'exists': 0.18; 'cc:no real name:2**0': 0.20; 'maybe': 0.21; 'cc:2**0': 0.22; 'header:In- Reply-To:1': 0.22; 'though.': 0.23; 'aug': 0.24; 'extract': 0.24; 'libraries': 0.24; 'url:wiki': 0.25; 'bit': 0.28; 'url:mailman': 0.28; 'correct': 0.28; 'server': 0.29; 'explicitly': 0.29; 'message-id:@mail.gmail.com': 0.29; 'specifically': 0.29; 'cc:addr:python.org': 0.30; 'subject:some': 0.30; 'url:13': 0.30; 'subject:?': 0.31; 'hi,': 0.32; "can't": 0.33; 'there': 0.33; 'url:listinfo': 0.33; 'university': 0.35; 'subject:How': 0.35; 'anything': 0.36; 'url:python': 0.36; 'question': 0.36; 'doing': 0.36; 'using': 0.37; 'listening': 0.38; 'some': 0.38; 'received:google.com': 0.38; 'url:org': 0.38; 'received:209.85': 0.38; 'subject:: ': 0.39; 'help': 0.39; 'url:net': 0.60; 'your': 0.61; 'stop': 0.61; '31,': 0.64; 'medical': 0.64; 'believe': 0.65; 'here': 0.65; 'show': 0.67; '(open': 0.84; 'service?': 0.91 |
| DKIM-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; bh=RH5y2zpzCmWaj2LWGyCuOSuADrp0r/zOth2TiQr4HzI=; b=beZP+Eng6CJ1eDwfk1Sa7ivlSClrqk4WR4d2M0BPu9Ns5LjuxF7X6Ndk6FVKUnc99n 30Dd+n2C9ksJzHCvHmubvgMA8wRo5MpAJrpqMExvoMUUHtbTb6BYiBIBoYARJTITXzH9 28mmmkOpTj+lxgZH2tTRL7Vb/B6tRxFVjj7RE= |
| MIME-Version | 1.0 |
| In-Reply-To | <CACZyjCG-Mm72B++CkvOvztAySbVD+CNdj-s21+c1ocvbndZfUQ@mail.gmail.com> |
| References | <CACZyjCG-Mm72B++CkvOvztAySbVD+CNdj-s21+c1ocvbndZfUQ@mail.gmail.com> |
| Date | Wed, 31 Aug 2011 10:22:20 -0400 |
| Subject | Re: How to save the packages received by a network interface or some port in a file and resend the packages received when needed? |
| From | Matty Sarro <msarro@gmail.com> |
| To | "king6cong@gmail.com" <king6cong@gmail.com> |
| Content-Type | text/plain; charset=UTF-8 |
| Content-Transfer-Encoding | quoted-printable |
| Cc | python-list@python.org |
| X-BeenThere | python-list@python.org |
| X-Mailman-Version | 2.1.12 |
| Precedence | list |
| List-Id | General discussion list for the Python programming language <python-list.python.org> |
| List-Unsubscribe | <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe> |
| List-Archive | <http://mail.python.org/pipermail/python-list> |
| List-Post | <mailto:python-list@python.org> |
| List-Help | <mailto:python-list-request@python.org?subject=help> |
| List-Subscribe | <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.605.1314800544.27778.python-list@python.org> (permalink) |
| Lines | 41 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1314800544 news.xs4all.nl 2409 [2001:888:2000:d::a6]:49885 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | x330-a1.tempe.blueboxinc.net comp.lang.python:12478 |
Show key headers only | View raw
Its possible using TCPDUMP and wireshark. however its a bit of a manual process (open the pcap in wireshark, select the correct tcp stream, and extract the file). I did this to show a vulnerability in how medical images were transmitted in a university hospital once :) Here are some guides, maybe it can serve as a jumping off point? http://packetlife.net/blog/2009/jul/13/quick-packet-capture-data-extraction/ http://wiki.wireshark.org/TCP_Reassembly There are some C# libraries specifically for this: http://www.codeproject.com/KB/IP/TcpRecon.aspx Not sure if anything exists explicitly for python though. -Matty On Wed, Aug 31, 2011 at 9:35 AM, king6cong@gmail.com <king6cong@gmail.com> wrote: > hi, > This is a question not specific to Python,but its related somehow,and I > believe I can get some help from your fellow:) > I am doing my work on a server service program on Linux that processes the > packages sent to the socket it listens.Their is already a old such service > listening on the port doing its job,and > I can't stop the old server service, and I need to get the packages sent to > the old server and send them to my new server service to make sure it works > well .How can I get the package and resent them to my new service? Is there > such a tool or is there some functionality that tools such as tcpdump > already provides? > Thanks:) > > -- > http://mail.python.org/mailman/listinfo/python-list > >
Back to comp.lang.python | Previous | Next — Next in thread | Find similar | Unroll thread
Re: How to save the packages received by a network interface or some port in a file and resend the packages received when needed? Matty Sarro <msarro@gmail.com> - 2011-08-31 10:22 -0400 Re: How to save the packages received by a network interface or some port in a file and resend the packages received when needed? Grant Edwards <invalid@invalid.invalid> - 2011-08-31 14:36 +0000
csiph-web