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

Hello everybody,

1st I speak French, so please excuse my mistakes. I'm trying to convert a txt capture in a pcap format, but I see this error:

The capture file appears to be damaged or corrupt.
(vwr: Invalid data length 2110274 (runs past the end of the record))

It has taken me 2 days to try to solve that. Please, can someone help me? Thank you in advance.

This question is marked "community wiki".

asked 28 Aug '14, 02:32

Schadrac%20Akroman's gravatar image

Schadrac Akr...
1111
accept rate: 0%

edited 28 Aug '14, 08:29

cmaynard's gravatar image

cmaynard ♦♦
9.4k1038142

To be sure I (we?) understand the question, you're trying to convert a text file of a format similar to the following to a binary .pcap file format, is that correct?

000000 00 e0 1e a7 05 6f 00 10 ........
000008 5a a0 b9 12 08 00 46 00 ........
000010 03 68 00 00 00 00 0a 2e ........
000018 ee 33 0f 19 08 7f 0f 19 ........
000020 03 80 94 04 00 00 10 01 ........
000028 16 a2 0a 00 03 50 00 0c ........
000030 01 01 0f 19 03 80 11 01 ........

The above sample was taken from the text2pcap.html man page.

Is that what you're trying to use, text2pcap, to do the conversion? If so, which version of text2pcap are you using; if not, which tool are you using?

Maybe you could provide a sample of the data you're trying to convert?

(28 Aug '14, 08:27) cmaynard ♦♦
Be the first one to answer this question!
toggle preview

Follow this question

By Email:

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

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "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:

×1,620
×549
×205
×19
×2

question asked: 28 Aug '14, 02:32

question was seen: 9,169 times

last updated: 28 Aug '14, 08:29

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