zoukankan      html  css  js  c++  java
  • linux系统抓包命令

    IP地址抓包:tcpdump -i any host 1.1.1.2 -n

    端口抓包: tcpdump -i any port 6789 -n

    wireshak工具抓包:tcp.port == 6789

                        

    1. 过滤源ip、目的ip。在wireshark的过滤规则框Filter中输入过滤条件。如查找目的地址为192.168.101.8的包,ip.dst==192.168.101.8;查找源地址为ip.src==1.1.1.1;

      使用wireshark常用的过滤命令
    2. 端口过滤。如过滤80端口,在Filter中输入,tcp.port==80,这条规则是把源端口和目的端口为80的都过滤出来。使用tcp.dstport==80只过滤目的端口为80的,tcp.srcport==80只过滤源端口为80的包;

      使用wireshark常用的过滤命令
    3. 协议过滤比较简单,直接在Filter框中直接输入协议名即可,如过滤HTTP的协议;

      使用wireshark常用的过滤命令
    4. http模式过滤。如过滤get包,http.request.method=="GET",过滤post包,http.request.method=="POST";

      使用wireshark常用的过滤命令
    5. 连接符and的使用。过滤两种条件时,使用and连接,如过滤ip为192.168.101.8并且为http协议的,ip.src==192.168.101.8 and http。

      使用wireshark常用的过滤命令
  • 相关阅读:
    Installing Oracle Database 12c Release 2(12.2) RAC on RHEL7.3 in Silent Mode
    周四测试
    假期生活
    《人月神话》阅读笔记三
    《人月神话》阅读笔记二
    《人月神话》阅读笔记一
    软件进度7
    软件进度6
    软件进度5
    软件进度4
  • 原文地址:https://www.cnblogs.com/dpf-learn/p/6746357.html
Copyright © 2011-2022 走看看