wireshark读写pcap文件_解析从wireshark文件采取的pcap使用 - Java

I am working on converting PCAP file taken from wireshark using JAVA without using native or ready libraries.

i converted the bytes to string directly just for checking the meaningful parts of it.

then i tried to convert it from hexadecimal to string. It was not meaningful.

there is java library jNetPcap which is wrapping all the libpcap library native calls which is written in c.

The following picture is captured the wireless network. so the pcap contains the same information: Source ip, destination ip, protocol, length and info

I am trying to get the same result form the pcap file which contains the data in hexadecimal or binary:

d4c3 b2a1 0200 0400 0000 0000 0000 0000

0000 0400 0100 0000 2fd4 b355 2af8 0600

3600 0000 3600 0000 0100 5e00 0016 f409

d8ed d951 0800 46c0 0028 0000 40

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值