scc: Session save and push from Mikes-MacBook-Air.local at 2026-04-19 08:34:23
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
This commit is contained in:
18
temp/scan_mac.sh
Executable file
18
temp/scan_mac.sh
Executable file
@@ -0,0 +1,18 @@
|
||||
#!/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
|
||||
Reference in New Issue
Block a user