


The trace file and additional troubleshooting information have been compiled as When you are done capturing data, it's time to stop it: Trace File: C:\Users\Administrator\AppData\Local\Temp\NetTraces\NetTrace In a pentest you would likely specify an output file that isn't in the users' directory.Ĭ:\>netsh trace start capture=yes IPv4.Address=192.168.122.2 Note that you need admin rights to run this, the same as any capture tool. You could also add Protocol=TCP or UDP and so on.įull syntax and notes for netsh trace can be found here: įor instance, the following session shows me capturing an issue with a firewall that I'm working on. ' netsh trace start capture=yes Ethernet.Type=IPv4 IPv4.Address=157.59.136.1' One of the examples in this output shows you how t o e.g.

We'll need to filter the capture, usually to a specific host IP, protocol or similar.

Of course, in most cases, tracing everything on any production box is not advisable - especially if it's your main Exchange, SQL or Oracle server. Show - List interfaces, providers and tracing state. Type "netsh trace help" on any Windows 7 Windows Server 2008 or newer box, and you'll see the following:Ĭonvert - Converts a trace file to an HTML report.Ĭorrelate - Normalizes or filters a trace file to a new output file. And yes, it does exactly what it sounds like it does. Well, as they say in networking (and security as well), there's always another way, and this is that way. Have you ever been on a pentest, or troubleshooting a customer issue, and the "next step" was to capture packets on a Windows host? Then you find that installing winpcap or wireshark was simply out of scope or otherwise not allowed on that SQL, Exchange, Oracle or other host? It used to be that this is when we'd recommend installing Microsoft's Netmon packet capture utility, but even then lots of IT managers would hesitate about using the "install" word in association with a critical server.
