Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tcpdump 抓包 #1

Open
xx-zhang opened this issue Jul 23, 2021 · 0 comments
Open

tcpdump 抓包 #1

xx-zhang opened this issue Jul 23, 2021 · 0 comments

Comments

@xx-zhang
Copy link
Owner

## 流量包捕获工具 Tcpdump


### 捕获特定服务的端口
```bash
tcpdump  -c 100  -nn  -XX   -vvv \
      -i ens192  'tcp and ((dst port 9980 and dst host 127.0.0.1) or \
    (src port 9980 and src host 127.0.0.1))'   \
    -w test2.pcap

tcpdump  -c 1000  -nn  -XX    -vvv   \
      -i lo  '(dst port 9980 and dst host 127.0.0.1) \
    or (src port 9980 and src host 127.0.0.1)'   \
    -w test-https-wget.pcap

tcpdump  -c 1000  -nn  -XX    \
    -vvv     -i ens192  'dst port 57321 or src port 57321'  \
     -w test-socks5.pcap
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant