免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 15664 | 回复: 2
打印 上一主题 下一主题

wireshark可不可以分割已经保存的数据包文件?? [复制链接]

论坛徽章:
1
数据库技术版块每日发帖之星
日期:2016-01-01 06:20:00
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2009-11-15 21:17 |只看该作者 |倒序浏览
我发现在windows下用wireshark打开一个100M的pcap文件,它的进程占用内存最高就能到达1G,如果是差一点的电脑,直接就报out of memory了
而且这种大文件,每次读取,筛选,都很费时费力


那么如果我现在有一个几百M的文件,想要打开它,应该只能分割成几个小文件分别读取吧,wireshark有这个分割的功能吗
我看了一下,它好像说有把这样的文件合并成一个文件的功能,但是好像没有说怎么分割


有人知道怎样实现吗?

论坛徽章:
0
2 [报告]
发表于 2009-11-15 22:10 |只看该作者
看了下wireshark目录下貌似还是有一些工具可以使用的.

比如editcap.exe.

具体如何使用的话,

H:\Wireshark>editcap.exe
Editcap 0.99.3 (SVN Rev 19011)
Edit and/or translate the format of capture files.
See http://www.wireshark.org for more information.

Usage: editcap [options] ... <infile> <outfile> [ <packet#>[-<packet#>] ... ]

A single packet or a range of packets can be selected.

Packets:
  -C <choplen>           chop each packet at the end by <choplen> bytes
  -d                     remove duplicate packets
  -E <error probability> set the probability (between 0.0 and 1.0 incl.)
                         that a particular packet byte will be randomly changed
  -r                     keep the selected packets, default is to delete them
  -s <snaplen>           truncate packets to max. <snaplen> bytes of data
  -t <time adjustment>   adjust the timestamp of selected packets,
                         <time adjustment> is in relative seconds (e.g. -0.5)
  -A <start time>        don't output packets whose timestamp is before the
                         given time (format as YYYY-MM-DD hh:mm:ss)
  -B <stop time>         don't output packets whose timestamp is after the
                         given time (format as YYYY-MM-DD hh:mm:ss)

Output File(s):
  -c <packets per file>  split the packet output to different files,
                         with a maximum of <packets per file> each
  -F <capture type>      set the output file type, default is libpcap
                         an empty "-F" option will list the file types
  -T <encap type>        set the output file encapsulation type,
                         default is the same as the input file
                         an empty "-T" option will list the encapsulation types

Miscellaneous:
  -h                     display this help and exit
  -v                     verbose output


帮你搜了一把,看看
http://www.netexpert.cn/thread-23746-1-1.html

http://www.netexpert.cn/thread-23081-1-1.html

希望对你有帮助。

[ 本帖最后由 双眼皮的猪 于 2009-11-15 22:12 编辑 ]

评分

参与人数 2可用积分 +7 收起 理由
cheveu + 2 好人。有空常来。
ssffzz1 + 5 我很赞同

查看全部评分

论坛徽章:
1
数据库技术版块每日发帖之星
日期:2016-01-01 06:20:00
3 [报告]
发表于 2009-11-16 09:24 |只看该作者
谢谢!!
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP