V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
• 请不要在回答技术问题时复制粘贴 AI 生成的内容
awanganddong
V2EX  ›  程序员

mac wireshark 怎么抓取本机的包

  •  
  •   awanganddong · Apr 29, 2022 · 2058 views
    This topic created in 1473 days ago, the information mentioned may be changed or developed.

    现在想用 wireshark 抓取本机 socket , 有没有比较好用的组合搭配 wireshark

    5 replies    2022-05-06 09:12:52 +08:00
    codefever
        1
    codefever  
       Apr 29, 2022
    进入界面,点击捕获,在捕获过程中,出现了 The capture session could not be initiated 错误,需要修改他的权限 chown 修改为全权限后就可以了。
    awanganddong
        2
    awanganddong  
    OP
       Apr 29, 2022
    我试下
    cnleon
        3
    cnleon  
       Apr 29, 2022
    命令行下 sudo tcpdump -i en0 -w aaa.pcap 这样可以吗?
    a8Fy37XzWf70G0yW
        4
    a8Fy37XzWf70G0yW  
       Apr 30, 2022
    直接 sudo wireshark 就可以了。
    awanganddong
        5
    awanganddong  
    OP
       May 6, 2022
    谢谢大家
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   5973 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 47ms · UTC 03:40 · PVG 11:40 · LAX 20:40 · JFK 23:40
    ♥ Do have faith in what you're doing.