#!/bin/bash
# Scan for MAC address ending in B8:56

echo "[INFO] Scanning local network for MAC ending in B8:56..."
echo "[INFO] Current subnet: 192.168.0.0/24"
echo ""

# Get ARP cache
arp -a | grep -i "b8:56" > /tmp/mac_result.txt

if [ -s /tmp/mac_result.txt ]; then
    echo "[SUCCESS] Found device(s):"
    cat /tmp/mac_result.txt
else
    echo "[INFO] No device with MAC ending in B8:56 found in current ARP cache"
    echo "[INFO] Showing all ARP entries:"
    arp -a
fi
