Network sniffing refers to using the network interface on a system to monitor or capture information sent over a wired or wireless connection. An adversary may place a network interface into promiscuous mode to passively access data in transit over the network, or use span ports to capture a larger amount of data.Data captured via this technique may include user credentials, especially those sent over an insecure, unencrypted protocol. Techniques for name service resolution poisoning, such as LLMNR/NBT-NS Poisoning and Relay, can also be used to capture credentials to websites, proxies, and internal systems by redirecting traffic to an adversary.
Network sniffing may also reveal configuration details, such as running services, version numbers, and other network characteristics (ex: IP addressing, hostnames, VLAN IDs) necessary for follow-on Lateral Movement and/or Defense Evasion activities.
Perform a PCAP. Wireshark will be required for tshark. TCPdump may already be installed.
Supported Platforms: Linux
Name | Description | Type | Default Value |
---|---|---|---|
interface | Specify interface to perform PCAP on. | String | ens33 |
tcpdump -c 5 -nnni #{interface}
tshark -c 5 -i #{interface}
Perform a PCAP on MacOS. This will require Wireshark/tshark to be installed. TCPdump may already be installed.
Supported Platforms: macOS
Name | Description | Type | Default Value |
---|---|---|---|
interface | Specify interface to perform PCAP on. | String | en0A |
tcpdump -c 5 -nnni #{interface}
tshark -c 5 -i #{interface}
Perform a packet capture using the windows command prompt. This will require a host that has Wireshark/Tshark installed, along with WinPCAP. Windump will require the windump executable.
Supported Platforms: Windows
Name | Description | Type | Default Value |
---|---|---|---|
interface | Specify interface to perform PCAP on. | String | Ethernet0 |
c:\Program Files\Wireshark\tshark.exe -i #{interface} -c 5
c:\windump.exe
Perform a packet capture using PowerShell with windump or tshark. This will require a host that has Wireshark/Tshark installed, along with WinPCAP. Windump will require the windump executable.
Supported Platforms: Windows
Name | Description | Type | Default Value |
---|---|---|---|
interface | Specify interface to perform PCAP on. | String | Ethernet0 |
c:\Program Files\Wireshark\tshark.exe -i #{interface} -c 5
c:\windump.exe