流量处理及分析工具
1、pkt2flow:A simple utility to classify packets into flows.
地址:https://github.com/caesar0301/pkt2flow
优点:使用C写的分流工具,速度很快,但是仅限于split flow,可以使用多线程提高效率
缺点:当文件格式或其他问题出现未报错,不易发现错误。
使用方式:
Usage: ./pkt2flow [-huvx] [-o outdir] pcapfile
Options:
-h print this help and exit
-u also dump (U)DP flows
-v also dump the in(v)alid TCP flows without the SYN option
-x also dump non-UDP/non-TCP IP flows
-o (o)utput directory
2、Tshark:wireshark的命令行版本
参数详解:https://www.wireshark.org/docs/man-pages/tshark.html
分流命令:-R为过滤条件
tshark -r .pcap -R 'tcp.stream eq 0' -2 -F pcap -w stream.pcap
导出json或ek(JSON format for bulk)
tshark -r offen_packet.pcap -T ek > output.json
tshark -r offen_packet.pcap -T json > output.json
可以写成脚本,循环分流等。
3、SplitCap:SplitCap is a free tool designed to split capture files (PCAP files) into smaller files
地址:https://www.netresec.com/index.ashx?page=SplitCap
优点:简单,文档完善,可以在win下使用
缺点:使用C#编写,在linux下运行效率可能不高
使用:
win下
SplitCap.exe -r large.pcap -s session -o "D:\sessions\"
linux下
#需要安装mono运行 .net 程序
sudo apt install mono-runtime
#分流命令
mono SplitCap.exe -r enet.pcap -s session -o "/root/sessions"
开发者还有一些分析工具和可视化工具
CapLoader:DNS Parser、Keyword String Search等等
NetworkMiner:Extract files、Extract X.509 certificates、OS Fingerprinting 等等
4、Joy、Mercury:思科 A package for capturing and analyzing network
Joy is a BSD-licensed libpcap-based software package for extracting data features from live network traffic or packet capture (pcap) files, using a flow-oriented model similar to that of IPFIX or Netflow, and then representing these data features in JSON.
地址:https://github.com/cisco/joy
Mercury reads network packets, identifies metadata of interest, and writes out the metadata in JSON format.
地址:https://github.com/cisco/mercury
还未使用,以后补充
5、flowcontainer:不仅仅是分流,而是提取一些原始信息
地址:https://github.com/jmhIcoding/flowcontainer
还未使用,感觉不好用,提供一个参考
6、CICFlowMeter、Tstate
CICFlowMeter:
UNB对于pcap的统计特征提取工具,80多种特征。
Tstate:
也有统计特征提取的功能
7、科来分析工具
一款商业可视化分析工具
8、libnids
网络入侵检测开发包,基于libpcap和libnet开发,是仿照linux内核中的TCP/IP协议部分而实现的。
libnids主要功能包括捕获网络数据包、IP碎片重组、TCP数据流重组以及端口扫描攻击检测和异常数据包检测等。
可以仿照开发的demo
3904




被折叠的 条评论
为什么被折叠?



