tcpdump 就是一个抓包工具,支持针对网络层、协议、主机、网络、或端口进行过滤,
并且提供了 and
、or
、not
等逻辑语句进行筛选过滤。
监听第一块网卡上经过的数据包。如果机器上不只一块网卡就需要指定网卡了。
tcpdump
import typing as t | |
import pathlib | |
class Dictionary(dict): | |
def __init__(self, value: t.Dict[str, t.Any]) -> None: | |
for k, v in value.items(): | |
if isinstance(v, dict): | |
v = Dictionary(v) |
// This file was initially generated by Windows Terminal 1.0.1401.0 | |
// It should still be usable in newer versions, but newer versions might have additional | |
// settings, help text, or changes that you will not see unless you clear this file | |
// and let us generate a new one for you. | |
// To view the default settings, hold "alt" while clicking on the "Settings" button. | |
// For documentation on these settings, see: https://aka.ms/terminal-documentation | |
{ | |
"$schema": "https://aka.ms/terminal-profiles-schema", | |
"defaultProfile": "{61c54bbd-c2c6-5271-96e7-009a87ff44bf}", | |
// You can add more global application settings here. |
{"lastUpload":"2021-03-16T08:16:13.990Z","extensionVersion":"v3.4.3"} |