• 为什么写博客,是因为遇到的坑,不希望别人在踩一遍!
  • 选择了,剩下的就是坚持和努力-------致自己!
  • 当能力达不到梦想时,更需要学习,努力,拼搏

tcpdump抓包、wireshark分析

Linux运维 雪豹 6年前 (2018-05-17) 1020次浏览 0个评论

tcpdump抓包、wireshark分析

# ubuntu 
[root@xuebao ~]#  apt-get install tcpdump -y
# centos 
[root@xuebao ~]# yum install -y tcpdump -y 
#下载后使用
[root@xg home]# tcpdump -i eth1 host 58.240.47.180 and port 7080 -w test.pcap
tcpdump: listening on eth1, link-type EN10MB (Ethernet), capture size 65535 bytes
解释: -i 指定网卡 host  抓包请求的IP and port  和 端口   -w 保存为 wireshark 格式pcap
-rw-r--r--  1 tcpdump tcpdump 2.0K May 17 14:17 test.pcap
# 根据自己抓包时间,将文件下载下载

2

导数据导入wireshark

选择文件——》打开

images


有需要可以联系微信xuebao19930721和加入微信群
喜欢 (0)
发表我的评论
取消评论

表情 贴图 加粗 删除线 居中 斜体 签到

Hi,您需要填写昵称和邮箱!

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址