Hi
How can I find IP and MAC address of attacker and victims from .pcap , which is capture from a man-in-the-middle attack!(IT-forensics).
I will be very thankful for your ansewr!
Hi
How can I find IP and MAC address of attacker and victims from .pcap , which is capture from a man-in-the-middle attack!(IT-forensics).
I will be very thankful for your ansewr!
Short, practical workflow for a Wi‑Fi MITM .pcap (context: reported the capture came from a Wi‑Fi point). As suggested, start by comparing who is claiming an IP on the wire to what the legitimate AP/router actually advertises. The most reliable signals inside a pcap are ARP activity, DHCP bindings, and 802.11 management frames (beacons/association/deauth). MACs can be trivially spoofed, so always corroborate pcap findings with router/DHCP logs and device ARP tables.
Concrete steps to follow:
eth.*, Wi‑Fi uses wlan.*).bootp/dhcp to find which MAC was assigned which IP at lease time—this ties a MAC to a client identity.wlan.ta/wlan.sa fields to identify transmitter vs. source addresses.Useful filters and quick commands:
# Wireshark display filters
arp
arp.opcode == 2
arp and arp.src.proto_ipv4 == arp.dst.proto_ipv4 # gratuitous ARP
bootp || dhcp
ip.addr == 192.168.1.5
eth.addr == 00:11:22:33:44:55
wlan_mgt.ssid == "SSIDName" # beacons for a given SSID
# tshark (Ethernet capture)
tshark -r capture.pcap -T fields -e eth.src -e eth.dst -e ip.src -e ip.dst | sort | uniq -c | sort -nr Caveats and next steps: encrypted Wi‑Fi payloads hide IP/ARP unless the 4‑way handshake and keys are available for decryption. MACs are easily spoofed or proxied by an AP, so pcap evidence should be corroborated with DHCP/router logs, endpoint ARP caches, and timestamps before treating any single MAC as definitive proof of who controlled the traffic. Preserve the original pcap and relevant logs for any formal investigation.
Under what condition do you suspect this mitm attack? if its a fake router or wifi point then comparing where your packet is comming from to where your router/modem claims it is comming from would be the easiest way. Otherwise there is no great catch-all for this attack.
Hi sir thanks for answer, itwas from wifi point.
Can you explain more please how can I find the ip of attacker?
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.