• 大小: 69KB
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2021-06-07
  • 语言: Java
  • 标签: Pcap、  

资源简介

java解析Pcap文件获取五元组(可运行)

资源截图

代码片段和文件信息

package PcapFinally;

import java.util.List;

public class Pcap {
private PcapHeader header;
private List data;
public PcapHeader getHeader(){
return header;
}
public void setHeader(PcapHeader header){
this.header=header;
}
public List getData(){
return data;
}
public void setData(List data){
this.data=data;
}
@Override
public String toString(){
     StringBuilder s = new StringBuilder();
     s.append(“header{\n“);
     s.append(header.toString());
     s.append(“}\n“);
     s.append(“data part count=“).append(data.size());

     return s.toString();
    }

}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件        301  2015-06-07 23:36  PcapTestZ\PcapTestZ\.classpath

     文件        385  2015-06-07 23:36  PcapTestZ\PcapTestZ\.project

     文件        194  2015-07-09 09:39  PcapTestZ\PcapTestZ\.settings\org.eclipse.core.resources.prefs

     文件        598  2015-06-07 23:36  PcapTestZ\PcapTestZ\.settings\org.eclipse.jdt.core.prefs

     文件        405  2015-07-08 10:33  PcapTestZ\PcapTestZ\111.206.37.193#08#6#222.20.52.208#9111.pcap

     文件        405  2015-07-08 15:05  PcapTestZ\PcapTestZ\111.206.37.193#80#6#222.20.52.208#23406.pcap

     文件         60  2015-07-08 10:33  PcapTestZ\PcapTestZ\115.156.147.219#2266#6#222.20.52.208#9112.pcap

     文件         60  2015-07-08 15:05  PcapTestZ\PcapTestZ\115.156.147.219#57925#6#222.20.52.208#23423.pcap

     文件         66  2015-07-08 10:33  PcapTestZ\PcapTestZ\203.208.50.132#08#6#222.20.52.208#9111.pcap

     文件         66  2015-07-08 10:33  PcapTestZ\PcapTestZ\203.208.50.132#08#6#222.20.52.208#9112.pcap

     文件         66  2015-07-08 15:05  PcapTestZ\PcapTestZ\203.208.50.132#80#6#222.20.52.208#23413.pcap

     文件         66  2015-07-08 15:05  PcapTestZ\PcapTestZ\203.208.50.132#80#6#222.20.52.208#23417.pcap

     文件         60  2015-07-08 10:33  PcapTestZ\PcapTestZ\221.228.204.31#08#6#222.20.52.208#9112.pcap

     文件         60  2015-07-08 15:05  PcapTestZ\PcapTestZ\221.228.204.31#80#6#222.20.52.208#23424.pcap

     文件         54  2015-07-08 15:05  PcapTestZ\PcapTestZ\222.20.52.208#23406#6#111.206.37.193#80.pcap

     文件         62  2015-07-08 15:05  PcapTestZ\PcapTestZ\222.20.52.208#23423#6#115.156.147.219#57925.pcap

     文件         54  2015-07-08 15:05  PcapTestZ\PcapTestZ\222.20.52.208#23424#6#221.228.204.31#80.pcap

     文件         54  2015-07-08 10:33  PcapTestZ\PcapTestZ\222.20.52.208#9111#6#111.206.37.193#08.pcap

     文件         66  2015-07-08 14:46  PcapTestZ\PcapTestZ\222.20.52.208#9112#6#115.156.147.219#2266.pcap

     文件         66  2015-07-08 10:38  PcapTestZ\PcapTestZ\222.20.52.208#9112#6#115.156.147.219#40666.pcap

     文件         54  2015-07-08 10:33  PcapTestZ\PcapTestZ\222.20.52.208#9112#6#221.228.204.31#08.pcap

     文件         66  2015-07-08 10:33  PcapTestZ\PcapTestZ\80.96.255.77#08#6#222.20.52.208#9112.pcap

     文件         66  2015-07-08 15:05  PcapTestZ\PcapTestZ\80.96.255.77#80#6#222.20.52.208#23419.pcap

     文件         66  2015-07-08 15:05  PcapTestZ\PcapTestZ\80.96.255.77#80#6#222.20.52.208#23420.pcap

     文件         66  2015-07-08 15:05  PcapTestZ\PcapTestZ\80.96.255.77#80#6#222.20.52.208#23421.pcap

     文件         66  2015-07-08 15:05  PcapTestZ\PcapTestZ\80.96.255.77#80#6#222.20.52.208#23422.pcap

     文件       7384  2015-05-11 20:26  PcapTestZ\PcapTestZ\bin\heheda.pcap

     文件       1474  2015-07-08 12:39  PcapTestZ\PcapTestZ\bin\PcapFinally\Pcap.class

     文件       7904  2015-07-10 09:49  PcapTestZ\PcapTestZ\bin\PcapFinally\PcapData.class

     文件       2180  2015-07-07 10:11  PcapTestZ\PcapTestZ\bin\PcapFinally\PcapHeader.class

............此处省略31个文件信息

评论

共有 条评论

相关资源