Skip to content
0-harshit-0 edited this page Jun 27, 2022 · 6 revisions

Welcome to the packet-capture wiki!

You can use these commands to operate packet-capture tool on different OS.

Windows Commands

  • Help Message:
py main.py -h
  • Start capturing:
py main.py -n 2 rem by default it will run 9999999999999999999 times.
  • Filter protocol and capture:
py main.py -n 2 -proto 6 rem protocol number to filter. In this case, it will only return TCP(6) and only capture 2 packets.
  • Filter IP(included in destination or source) and capture:
py main.py -n 2 -ip 10.1.1.4
  • Filter Destination IP(included in destination only) and capture:
py main.py -n 2 -dip 10.1.1.4
  • Filter Source IP(included in source only) and capture:
py main.py -n 2 -sip 10.1.1.4
Clone this wiki locally