T
Tom Anderson
That is how you find out your OWN MAC. The way he found out the remote
MAC required some unspecified fiddle to get the machine to reveal it to
the outside world, perhaps via a human on the telephone.
Yes, that's what i was thinking. It could be a bit more automatic than a
technician with a phone, but that would also work. If he's only monitoring
a small number of machines, it might even be the easiest way to do it.
The MAC is confidential in the sense the Java Applet sandbox will IIRC
not let you find out the MAC of your own machine and tattle to another
machine, unless you sign the applet.
That's certainly true.
But it is possible to do it without running *any code at all* on the
remote machine - you can get the remote machine's MAC address from your
own local ARP cache.
Here's a script to do it under unix:
#! /bin/bash
addr=$1
arp -a | grep $addr | cut -d " " -f 4
I've called it getmac - here it is in action:
cramerlab$ getmac mrclmcb174.mcbl.ucl.ac.uk
0:d:93:40:b1:e6
You do need to have the remote machine in your ARP cache, which means
either pinging it somehow, or waiting for it to advertise itself.
tom