I don't think this will help your security needs BUT here is a function I
have used a few times to pull mac address
<%
function GetMACAddress(s trIP)
Set net = Server.CreateOb ject("wscript.n etwork")
Set sh = Server.CreateOb ject("wscript.s hell")
sh.run "%comspec% /c nbtstat -A " & strIP & " > c:\" & strIP &
".txt",0,tr ue
Set sh = nothing
Set fso = createobject("s cripting.filesy stemobject")
Set ts = fso.opentextfil e("c:\" & strIP & ".txt")
macaddress = null
Do While Not ts.AtEndOfStrea m
data = ucase(trim(ts.r eadline))
if instr(data,"MAC ADDRESS") Then
macaddress = trim(split(data ,"=")(1))
Exit Do
End if
loop
ts.close
Set ts = nothing
fso.deletefile "c:\" & strIP & ".txt"
Set fso = nothing
GetMACAddress = macaddress
End function
strMac = GetMACAddress(s trIP)
%>
<input type="text" name="MacADDY" value=<%Respons e.Write(strMac &
vbcrlf)%>/>
Best regards,
Jason M. Murray [MSFT]
This posting is provided "AS IS" with no warranties, and confers no rights.
Use of included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm.
--------------------
| From: "Larry R. Baker" <lb****@eaglest rike.net>
| Subject: Mac Address
| Date: Fri, 19 Sep 2003 10:49:33 -0400
| Lines: 5
| X-Priority: 3
| X-MSMail-Priority: Normal
| X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
| Message-ID: <u6************ *@TK2MSFTNGP12. phx.gbl>
| Newsgroups: microsoft.publi c.inetserver.as p.general
| NNTP-Posting-Host: lexdsl01.4.0.1. 117.b.iglou.com 64.253.97.197
| Path: cpmsftngxa06.ph x.gbl!TK2MSFTNG P08.phx.gbl!TK2 MSFTNGP12.phx.g bl
| Xref: cpmsftngxa06.ph x.gbl microsoft.publi c.inetserver.as p.general:25309 9
| X-Tomcat-NG: microsoft.publi c.inetserver.as p.general
|
| What is the best way to pull a pc's Mac Address from a web page?
|
| Larry
|
|
|