style="display:inline-block;width:728px;height:90px"
data-ad-client="ca-pub-7505528228218001"
data-ad-slot="1225241371">

how to read this part of pcap

2 replies [Last post]
User35
Offline
Joined: 05/18/2015

Hi all
First sorry for my English I am frensh Sad
So I'm using Jnetpcap to read a pcap file , and i want just to know how to read this part of pcap :

59 79 59 79 00 d5 42 d4 2b 8e 23 68 00 03 00 f4 YyYy..B.+.#h....
0d 83 67 d1 00 08 34 96 00 00 00 03 01 00 01 01 ..g...4.........
00 00 00 e4 02 10 00 d9 00 00 04 12 00 00 21 28 ..............!(
03 02 00 07 09 81 03 0e 19 0b 52 08 00 11 04 23 ..........R....#
84 06 00 70 03 0b 12 06 00 11 04 23 84 06 00 00 ...p.......#....
01 ab 65 81 a8 48 04 8e 00 01 c5 49 04 28 00 00 ..e..H.....I.(..

Thank you for your help

User35
Offline
Joined: 05/18/2015
actually i'am used

actually i'am used (packet.toHexdump()), but it gives all data :
00e2: 02 01 16 80 07 91 23 84 06 00 71 f2 81 01 01 00 ......#...q.....
00f2: 00 80 01 03 00 00 a1 80 30 80 30 12 0a 01 02 02 ........0.0.....
0102: 01 15 80 07 91 23 84 06 00 71 f2 81 01 01 00 00 .....#...q......
0112: 80 01 03 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
0122: 00 03 00 7c 0d 83 67 d2 00 08 34 97 00 00 00 03 ...|..g...4.....
0132: 01 00 01 01 00 00 00 6c 02 10 00 61 00 00 04 12 .......l...a....
0142: 00 00 21 28 03 02 00 07 09 81 03 0e 19 0b 52 08 ..!(..........R.
0152: 00 11 04 23 84 06 00 70 03 0b 12 06 00 11 04 23 ...#...p.......#
0162: 84 06 00 00 01 33 64 31 49 04 28 00 00 e3 6c 29 .....3d1I.(...Loser
0172: a2 27 02 01 01 30 22 02 01 16 a3 80 a7 10 a0 09 .'...0".........
0182: 81 07 91 22 71 67 83 00 19 a1 03 0a 01 00 a5 03 ..."qg..........
0192: 83 01 11 8f 02 04 00 00 00 00 00 00 ............

an for my application i want just read this part:

59 79 59 79 00 d5 42 d4 2b 8e 23 68 00 03 00 f4 YyYy..B.+.#h....
0d 83 67 d1 00 08 34 96 00 00 00 03 01 00 01 01 ..g...4.........
00 00 00 e4 02 10 00 d9 00 00 04 12 00 00 21 28 ..............!(
03 02 00 07 09 81 03 0e 19 0b 52 08 00 11 04 23 ..........R....#
84 06 00 70 03 0b 12 06 00 11 04 23 84 06 00 00 ...p.......#....
01 ab 65 81 a8 48 04 8e 00 01 c5 49 04 28 00 00 ..e..H.....I.(..

User35
Offline
Joined: 05/18/2015
The solution is

The solution is .toHexdump(int arg0, boolean arg1, boolean arg2, boolean arg3).

Thanks

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.