当前位置:网站首页>Tcpdump command usage details
Tcpdump command usage details
2022-07-01 22:57:00 【victorwjw】
tcpdump Command to use detailed _ Crazy little penguin blog -CSDN Blog _tcpdump Detailed command The most detailed tcpdump Use guide - Wang Yibai - Blog Garden Tcpdump Practical tutorial of bag capturing tool , Let you know that a bag grabs the world !_ Bili, Bili _bilibili
Generally, the following types of keywords :
About keywords for data types :
Include host、port、net, for example host 192.168.1.1 Indicates that this is a host ,net 192.168.0.0 It means this is a network address ,port 22 Indicates that the port number is 22, If no type is specified , The default type is host
Keywords of data transmission direction :
Include src、dst、dst or src、dst and src, These keywords indicate the direction of transmission , such as src 192.168.1.1 The source address of the packet is 192.168.1.1,dst net 192.168.0.0 Indicate that the destination network address is 192.168.0.0, The default is to monitor host to host src and dst, That is, by default, listen to all data of the local machine and the target host
Protocol keywords :
Include ip、arp、rarp、tcp、udp etc. ,
Other keywords :
Operation type :or、and、not、!
Auxiliary function :gateway、less、broadcast、greater
There is a complete method of use , The following excerpts are some commonly used
tcpdump -i eth0 Monitor the specified network card eth0 All transmission packets , When there are multiple network cards, you must specify which one
tcpdump host 192.168.56.209 and ( 192.168.56.210 or 192.168.56.211 ) # Capture host 192.168.56.209 And host 192.168.56.210 or 192.168.56.211 All communication packets ( It can also be a host name , But the requirements can be resolved IP Address )
tcpdump ip host node9 and ! www.baidu.com # Capture node9 Communication packets with all other hosts ( barring www.baidu.com)
tcpdump -i eth0 src node10 # Capture source host node10 All the process of sending eth0 All packets of the network card
-nn
: Don't convert protocol and port number to name , It's going to be a lot faster .
tcpdump icmp -w icmp.pcap Use -w
Is to write data to a file , While using -r
Read data from file .
tcpdump -vvAls0 | grep 'POST' Grab HTTP POST Request package
tcpdump -nn -A -s1500 -l | egrep -i 'User-Agent:|Host:' from HTTP Extract... From the request header User-Agent And the host name
tcpdump 'tcp port 80 and (((ip[2:2] - ((ip[0]&0xf)<<2)) - ((tcp[12]&0xf0)>>2)) != 0)' Grab 80 Port of HTTP Valid packets , exclude TCP The packets of the connection establishment process (SYN / FIN / ACK)
tcp Protocol message header
Usually Wireshark
( or tshark) Than tcpdump It's easier to analyze application layer protocols . The general practice is to use... On the remote server first tcpdump
Grabbing data and writing it to a file , And then copy the file to the local workstation Wireshark
analysis .
边栏推荐
- 正则系列之组和范围(Groups and Ranges)
- 聊一聊Zabbix都监控哪些参数
- Yolov5.5 call local camera
- Cloud Vulnerability Global Database
- Preparation of functional test report
- locust的使用
- MySQL5.7 设置密码策略(等保三级密码改造)
- Digital currency: far-reaching innovation
- 效率提升 - 鼓捣个性化容器开发环境
- Deadlock handling strategies - prevent deadlock, avoid deadlock, detect and remove deadlock
猜你喜欢
MySQL -- index of MyISAM storage engine
el-input文本域字数限制,超过显示变红并禁止输入
SAP intelligent robot process automation (IRPA) solution sharing
The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received
Kubernetes create service access pod
思科--WAN 的概念考试外部工具
[JUC learning road day 9] barrier derivatives
Intelligent computing architecture design of Internet
[image segmentation] 2021 segformer neurips
El input text field word limit, beyond which the display turns red and input is prohibited
随机推荐
SAP UI5 应用开发教程之一百零四 - SAP UI5 表格控件的支持复选(Multi-Select)以及如何用代码一次选中多个表格行项目
pytorch训练自己网络后可视化特征图谱的代码
tcpdump命令使用详解
Share some feelings of a programmer who has experienced layoffs twice a year
Using emqx cloud to realize one machine one secret verification of IOT devices
使用 EMQX Cloud 实现物联网设备一机一密验证
Kubernetes create service access pod
Single step debugging analysis of rxjs observable of operator
Appium自动化测试基础 — APPium安装(一)
The fixed assets management subsystem reports are divided into what categories and which accounts are included
SAP intelligent robot process automation (IRPA) solution sharing
每日刷题记录 (十)
104. SAP UI5 表格控件的支持复选(Multi-Select)以及如何用代码一次选中多个表格行项目
leetcode - 287. Find duplicates
Genicam gentl standard ver1.5 (4) Chapter 5 acquisition engine
Little red book scheme jumps to the specified page
Tourism Management System
SAP GUI 里的收藏夹事务码管理工具
转--原来gdb的底层调试原理这么简单
rxjs Observable of 操作符的单步调试分析