[Tfug] Looking for a script

Brian Murphy murphy+tfug at email.arizona.edu
Thu Jun 14 20:22:08 MST 2007


Quoting Steven Bowers <steveb7 at simplybits.net>:
> Is anyone familiar with a script that can grab the MAC address and
> hostname of a computer connecting to a web page on an internal LAN?


Not by name, but you have the IP in the REMOTE_ADDR
CGI environment variable.  From there you can run arp | grep IP | awk
'{print $3}' to get the MAC.

Brian


The opinions or statements expressed herein are my own and should not be
taken as a position, opinion, or endorsement of the University of
Arizona.






More information about the tfug mailing list