Archive for January 28th, 2003
Daily Archive
Tuesday, January 28th, 2003
Why MAC addresses suck
any idea how much of a pain it is to find info about obtaining hardware MAC addresses from clients using an ASP page?
for windows machines:
strIP = Request.ServerVariables(“HTTP_X_CISCO_BBSM_CLIENTIP”)
strMac = GetMACAddress(strIP)
Function GetMACAddress(strIP)
Set net = Server.CreateObject(“wscript.network”)
Set sh = Server.CreateObject(“wscript.shell”)
sh.run “comspec /c nbtstat -A ” & strIP & ” > c:\” & strIP & ”.txt”,0,true
Set sh = nothing
Set fso [...]
