Chinaunix首页 | 论坛 | 博客
  • 博客访问: 867669
  • 博文数量: 179
  • 博客积分: 0
  • 博客等级: 民兵
  • 技术积分: 1546
  • 用 户 组: 普通用户
  • 注册时间: 2015-01-27 11:05
个人简介

MySQL工程师 QQ:1815357042

文章分类

全部博文(179)

文章存档

2015年(179)

分类: LINUX

2015-03-04 16:49:46


Linux下的wireshark

默认CentOS是没有这个命令的,需要安装

  1. [root@localhost ~]# yum install -y wireshark


下面这条命令用于web服务器,类似于访问web访问日志,有时候若服务器没有配置访问日志,可以临时使用这个命令查看一下当前服务器上的web请求
  1. [root@localhost ~]# tshark -n -t a -R http.request -T fields -e "frame.time" -e "ip.src" -e "http.host" -e "http.request.method" -e "http.request.uri"
  2. Running as user "root" and group "root". This could be dangerous.
  3. Capturing on eth0
  4. Mar 4, 2015 16:47:21.012497000        [FF02::C]:1900    M-SEARCH    *
  5. Mar 4, 2015 16:47:21.074953000        [FF02::C]:1900    M-SEARCH    *
  6. Mar 4, 2015 16:47:21.194306000        [FF02::C]:1900    M-SEARCH    *
  7. Mar 4, 2015 16:47:21.195083000    192.168.2.59    239.255.255.250:1900    M-SEARCH    *
  8. Mar 4, 2015 16:47:21.238191000        [FF02::C]:1900    M-SEARCH    *
  9. Mar 4, 2015 16:47:21.239029000    192.168.2.59    239.255.255.250:1900    M-SEARCH    *
  10. Mar 4, 2015 16:47:24.074608000        [FF02::C]:1900    M-SEARCH    *
  11. Mar 4, 2015 16:47:24.201362000        [FF02::C]:1900    M-SEARCH    *
  12. Mar 4, 2015 16:47:24.202174000    192.168.2.59    239.255.255.250:1900    M-SEARCH    *
  13. Mar 4, 2015 16:47:24.249410000        [FF02::C]:1900    M-SEARCH    *
  14. Mar 4, 2015 16:47:24.250206000    192.168.2.59    239.255.255.250:1900    M-SEARCH    *
  15. Mar 4, 2015 16:47:26.227773000    192.168.1.17    msg.mail.163.com    GET    /cgi/mc?funcid=getusrnewmsgcnt&fid=0&username=linyonghua.hi%40163.com
  16. Mar 4, 2015 16:47:26.653048000        [FF02::C]:1900    M-SEARCH    *


阅读(1234) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~