This is our old Q&A Site. Please post any new questions and answers at

I want to extract the files such as pdfs, images, javascripts etc. from the pcap file captured using wireshark. I want the protocols such as http, ftp, smtp, pop supported. Please let me know how can i extract the files using code preferably c programming to do the same.

asked 16 Jun '15, 17:11

kruthi's gravatar image

accept rate: 0%

edited 17 Jun '15, 08:38

Kurt%20Knochner's gravatar image

Kurt Knochner ♦

Wireshark is able to export objects from a pcap file, but only for HTTP, DICOM and SMB. If you want to know how that works, take a look at the Wireshark source code (Files: export_object*.c).

An alternative are the following tools:

Either use them directly, or take a look at the code to learn from it.


permanent link

answered 17 Jun '15, 08:38

Kurt%20Knochner's gravatar image

Kurt Knochner ♦
accept rate: 15%

edited 17 Jun '15, 08:38

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text]( "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:


question asked: 16 Jun '15, 17:11

question was seen: 7,191 times

last updated: 17 Jun '15, 08:38

p​o​w​e​r​e​d by O​S​Q​A