博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
Linux之tcpdump用法汇总整理
阅读量:4026 次
发布时间:2019-05-24

本文共 529 字,大约阅读时间需要 1 分钟。

## tcpdump用法汇总

 

tcpdump -n -i eth0 host 192.168.31.147 and 114.114.114.114

截取本机192.168.31.147和主机114.114.114.114之间的通信数据

 

tcpdump -n -i eth0 dst 192.168.31.147

tcpdump -n -i eth0 dst 192.168.31.147  or  192.168.31.157

截取所有进入本机的数据(或多个IP)

 

tcpdump -n -i eth0 dst 192.168.31.147 or 192.168.31.157 and tcp

抓取进入本机的所有tcp数据包

 

tcpdump -n -i eth0 src 192.168.31.147 or 192.168.31.157

tcpdump -n -i eth0 src 192.168.31.147 and port ! 22 and tcp

抓取从本机发出的数据包

and or进行条件赛选(端口)

 

tcpdump host 192.168.1.142 

截获主机所有的收发的数据

 

 

 

 

 

 

 

 

 

 

 

 

 

转载地址:http://obvbi.baihongyu.com/

你可能感兴趣的文章
CCF 分蛋糕
查看>>
解决python2.7中UnicodeEncodeError
查看>>
小谈python 输出
查看>>
Django objects.all()、objects.get()与objects.filter()之间的区别介绍
查看>>
python:如何将excel文件转化成CSV格式
查看>>
Django 的Error: [Errno 10013]错误
查看>>
机器学习实战之决策树(一)
查看>>
[LeetCode By Python] 2 Add Two Number
查看>>
python 中的 if __name__=='__main__' 作用
查看>>
机器学习实战之决策树二
查看>>
[LeetCode By Python]7 Reverse Integer
查看>>
[LeetCode By Python]9. Palindrome Number
查看>>
[leetCode By Python] 14. Longest Common Prefix
查看>>
[LeetCode By Python]107. Binary Tree Level Order Traversal II
查看>>
[LeetCode By Python]108. Convert Sorted Array to Binary Search Tree
查看>>
[leetCode By Python]111. Minimum Depth of Binary Tree
查看>>
[LeetCode By Python]118. Pascal's Triangle
查看>>
[LeetCode By Python]121. Best Time to Buy and Sell Stock
查看>>
[LeetCode By Python]122. Best Time to Buy and Sell Stock II
查看>>
[LeetCode By Python]125. Valid Palindrome
查看>>