How to build a device inventory from a PCAP

Devices describe themselves constantly: they announce names, ask for addresses, and identify their software to the servers they talk to. A capture collects all of it without sending a single packet. That makes it a safe way to find out what is really on a network, including the devices no one wrote down.

By Stuart Mathieson8 minute readtshark + WiresharkUpdated 12 October 2026
The quick way

Upload the capture and PCAPNG Analyzer’s Devices & services view does most of this for you, on the Free tier. It shows DHCP devices with hostname, vendor class and fingerprint; SSH software; Kerberos accounts; LDAP binds; SMB sessions and workstations; and NTP servers. In Pro, first-seen findings flag hosts you’ve never seen before.

Try it free on your own computer →
In this guide
  1. Why passive, and its limits
  2. Hardware vendors from MAC addresses
  3. Names and OS hints from DHCP
  4. Name announcements
  5. Software banners and user agents
  6. Build the table
  7. Manual vs automated workflow

1. Why passive, and its limits

Active scanning finds devices by probing them, which can upset fragile equipment (industrial controllers, medical devices, old printers) and needs permission. A capture only listens. The trade-off is that it only sees devices that talk during the capture, on the segment where it was taken:

2. Hardware vendors from MAC addresses

The first half of a MAC address is registered to the manufacturer. Wireshark resolves it:

tshark -r capture.pcapng -T fields -e eth.src -e eth.src_resolved | sort -u
3c:52:82:aa:00:01	HewlettPacka_aa:00:01
f0:18:98:bb:00:02	Apple_bb:00:02

Modern phones and laptops often use a random, private MAC address per network, which resolves to no vendor. You can recognise them: the second hex digit is 2, 6, A or E (the "locally administered" bit). Traffic from beyond the local router carries the router's MAC, so vendor lookups only work for devices on the captured segment.

3. Names and OS hints from DHCP

When a device asks for an address, it usually sends its hostname, a vendor class and a list of the options it wants, in an order fixed by its operating system:

tshark -r capture.pcapng -Y "dhcp.option.dhcp in {1, 3}" \
  -T fields -e dhcp.hw.mac_addr -e dhcp.option.hostname \
  -e dhcp.option.vendor_class_id -e dhcp.option.request_list_item | sort -u
3c:52:82:aa:00:01	FINANCE-PC07	MSFT 5.0	1,3,6,15,31,33,43,44,46,47,119,121,249,252
f0:18:98:bb:00:02	Pixel-8	android-dhcp-14	1,3,6,15,26,28,51,58,59,43,114,108

The server's Offer and Ack carry the address the device was given, which links the MAC to its IP for the rest of the capture.

4. Name announcements

Many devices announce their names to the local network:

tshark -r capture.pcapng -Y "mdns && dns.flags.response == 1" \
  -T fields -e ip.src -e dns.resp.name | sort -u

5. Software banners and user agents

6. Build the table

Join what you found on the MAC address, and on the IP address the device held during the capture: vendor, hostname, operating-system hint, software seen, and the services it offered or used. Then compare it with your asset register. The interesting rows are the devices you can't match: an unknown vendor on the server VLAN, a Raspberry Pi in an office, a personal device on the corporate network, or a server running an SSH version you thought was retired.

Everything a device says about itself can be false.

Hostnames, vendor classes, banners and user agents are set by the device, and MAC addresses can be changed. Use them to build the inventory, not to prove a device's identity. An attacker can name their machine after a printer.

Manual method vs PCAPNG Analyzer

Manual method

  1. Capture at an uplink, ideally across start-up.
  2. Resolve MAC vendors and decode DHCP.
  3. Collect mDNS, NetBIOS and LLDP names.
  4. Gather SSH banners, user agents and fingerprints.
  5. Join it into a table and compare with the asset register.

With PCAPNG Analyzer

  1. Upload the capture.
  2. Open Devices & services for DHCP devices, SSH software, accounts, SMB sessions and NTP.
  3. Add the TLS fingerprints and HTTP user agents, and in Pro check first-seen findings for new hosts.
What the devices view covers

The view is built from DHCP, SSH, Kerberos, LDAP, SMB and NTP, and is part of the Free tier. mDNS, NetBIOS and LLDP names and MAC vendors aren’t included, so the commands above fill those in. Like any passive inventory, it shows the devices that talked during the capture.

See what's really on your network

List devices, software and services from every capture, without sending a packet, on a server you control.

Start freeCompare Free and Pro