> For the complete documentation index, see [llms.txt](https://book.ice-wzl.xyz/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://book.ice-wzl.xyz/windows-priv-esc/pktmon-packet-capture-windows.md).

# pktmon Packet Capture Windows

* pktmon is a native binary found on Windows 10 systems
* Can capture packets based on port number
* Binary found on all post Win 10 October 18 update
* Binary with pcap conversion ability found on all Win 10 2004 (May 2020 update)
* Packet Capture will be saved in .etl format, convert it to a pcap --> <https://github.com/microsoft/etl2pcapng/>

### Capture Packet Process

* View the filters saved on the machine first (if any)

```
pktmon filter list
```

* Create your own filters

```
pktmon filter add -t TCP -p 8080 -i 10.10.120.1
pktmon filter add -t UDP -p 69 
```

* Capture Packets

```
pktmon start --etw -po -f output.etl
pktmon stop 
```

* Convert if the system is post required updated

```
pktmon pcapng input.etl -o output.etl
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://book.ice-wzl.xyz/windows-priv-esc/pktmon-packet-capture-windows.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
