Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

As the title says, I'm looking for a way to extract binaries from PCAP's using the command line. I realize it is possible using Wireshark -> File -> Export -> http objects etc. But tshark doesn't seem to support this.

Is there a way to do this or code around this, preferably using python or bash. Or does anyone know of tools that can do this that I am not aware of.

I'd prefer if the method is automatable / scriptable.

share|improve this question
up vote 2 down vote accepted

I think tcpextract is what you're looking for.

share|improve this answer
I will look in to it. Not accepting yet, going to see if other people suggest other tools. +1 – delh Nov 9 '12 at 15:31

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.