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

45 00 00 44 00 00 40 00 40 84 52 06 0a 00 55 7c c2 96 c6 1d (Level Internet Protocol where Internet Protocol, Src: 10.0.85.124 (10.0.85.124), Dst: 194.150.198.29 (194.150.198.29)etc...

text2pcap ???? src-file dst-file

asked 03 Dec '10, 01:29

tgeanp00's gravatar image

tgeanp00
1111
accept rate: 0%


Save the data in a file (e.g., in.txt), with hex offsets prepending each line of 16 bytes as follows:

0000  45 00 00 44 00 00 40 00 40 84 52 06 0a 00 55 7c
0010  c2 96 c6 1d

Then run something like , "text2pcap -e 0x800 in.txt out.pcap"

permanent link

answered 28 Mar '11, 12:43

cmaynard's gravatar image

cmaynard ♦♦
9.3k1038142
accept rate: 20%

Or "text2pcap -l 101 in.txt out.pcap", which will use "raw IP" encapsulation, rather than adding fake Ethernet headers.

(28 Mar '11, 18:21) Guy Harris ♦♦
Your answer
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:

×238

question asked: 03 Dec '10, 01:29

question was seen: 6,370 times

last updated: 30 Mar '11, 10:29

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