Mac Address

E

Evertjan.

Larry R. Baker wrote on 19 sep 2003 in
microsoft.public.inetserver.asp.general:
What is the best way to pull a pc's Mac Address from a web page?

It is not there.

That would be a security violation and risk !
 
P

PB4FUN

You might try if it works in Visual Basic or C++
If you can do that you could try if with either a DLL or a clientside
ActiveX (but latter would only work in IE)
Maybe a JavaApplet could do it
But I am not sure if it would work, never tried it.

Meindert, MCP
 
L

Larry R. Baker

Internet, I am thinking of Age verification as well as ID'ing the person's
computer for purchases. Since MAC Addresses are unique they would be a good
identifier for someone that bought something at your site. Just one more
thing to add to the fingerprinting of PC's that hit my site.


Ray at said:
Is this for an intranet-only site by chance?

Ray at work
 
M

Mark Schupp

You would need a signed applet or component which would ask the user's
permission to access the local system (browser would ask).

Your business would also drop to 0 the minute word got out that you were
doing this (ask Intel how many user's have the CPU serial number enabled on
their PIII systems).

If you want to keep track of users ask them to register and require a login
to get into your site.

--
Mark Schupp
--
Head of Development
Integrity eLearning
Online Learning Solutions Provider
(e-mail address removed)
http://www.ielearning.com
714.637.9480 x17
 
L

Larry R. Baker

I do but there is the possibility of people lying and in order to make a
best effort to prove that the person is who they are things have to happen
like this. People can expect to have to do a little more when payments are
involved and I don't something like giving up the Mac Address is that bad
especially since it would only be used to argue when people say that they
did not visit your website and didn't buy anything.

Comes down to fraud protection.
 
E

Evertjan.

Larry R. Baker wrote on 20 sep 2003 in
microsoft.public.inetserver.asp.general:
I do but there is the possibility of people lying and in order to make
a best effort to prove that the person is who they are things have to
happen like this. People can expect to have to do a little more when
payments are involved and I don't something like giving up the Mac
Address is that bad especially since it would only be used to argue
when people say that they did not visit your website and didn't buy
anything.

Comes down to fraud protection.

1

Even then it does not work. My DraytecVigor router can be set to any MAC
address I want, since my cable connection does not need it.

MAC addresses are NOT that unique !!!

2

Needing something for a supposed(!) legal use does not mean the ideea of
internet safety should be compromised.

It is like asking someone's housekeys by a bank to have a look if he is
really living there on opening a bank account.
 
J

Jason M. Murray

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(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 = createobject("scripting.filesystemobject")
Set ts = fso.opentextfile("c:\" & strIP & ".txt")
macaddress = null
Do While Not ts.AtEndOfStream
data = ucase(trim(ts.readline))
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(strIP)
%>

<input type="text" name="MacADDY" value=<%Response.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" <[email protected]>
| 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: <[email protected]>
| Newsgroups: microsoft.public.inetserver.asp.general
| NNTP-Posting-Host: lexdsl01.4.0.1.117.b.iglou.com 64.253.97.197
| Path: cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTNGP12.phx.gbl
| Xref: cpmsftngxa06.phx.gbl microsoft.public.inetserver.asp.general:253099
| X-Tomcat-NG: microsoft.public.inetserver.asp.general
|
| What is the best way to pull a pc's Mac Address from a web page?
|
| Larry
|
|
|
 
R

Ray at

If you permit me to modify this a bit...

function GetMACAddress(strIP)
GetMacAddress = ""
Set net = Server.CreateObject("wscript.network")
Set sh = Server.CreateObject("wscript.shell")
sh.run "%comspec% /c nbtstat -A " & strIP & "|find ""MAC Address"">c:\"
& strIP & ".txt",0,true
Set sh = nothing
Set fso = createobject("scripting.filesystemobject")
fileContents = Trim(fso.opentextfile("c:\" & strIP & ".txt").ReadLine)
fso.deletefile "c:\" & strIP & ".txt"
Set fso = nothing
GetMacAddress = Replace(fileContents, "MAC Address = ", "")
End function





Ray at work
 
J

Jason M. Murray

no problems, thanks for the tweak.


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: "Ray at <%=sLocation%>" <myfirstname at lane34 dot com>
| References: <[email protected]>
<[email protected]>
| Subject: Re: Mac Address
| Date: Tue, 23 Sep 2003 11:54:33 -0400
| Lines: 66
| 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: <[email protected]>
| Newsgroups: microsoft.public.inetserver.asp.general
| NNTP-Posting-Host: 209.3.214.171
| Path: cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!tk2msftngp13.phx.gbl
| Xref: cpmsftngxa06.phx.gbl microsoft.public.inetserver.asp.general:253455
| X-Tomcat-NG: microsoft.public.inetserver.asp.general
|
| If you permit me to modify this a bit...
|
| function GetMACAddress(strIP)
| GetMacAddress = ""
| Set net = Server.CreateObject("wscript.network")
| Set sh = Server.CreateObject("wscript.shell")
| sh.run "%comspec% /c nbtstat -A " & strIP & "|find ""MAC
Address"">c:\"
| & strIP & ".txt",0,true
| Set sh = nothing
| Set fso = createobject("scripting.filesystemobject")
| fileContents = Trim(fso.opentextfile("c:\" & strIP &
".txt").ReadLine)
| fso.deletefile "c:\" & strIP & ".txt"
| Set fso = nothing
| GetMacAddress = Replace(fileContents, "MAC Address = ", "")
| End function
|
|
|
|
|
| Ray at work
|
| | > 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(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 = createobject("scripting.filesystemobject")
| > Set ts = fso.opentextfile("c:\" & strIP & ".txt")
| > macaddress = null
| > Do While Not ts.AtEndOfStream
| > data = ucase(trim(ts.readline))
| > 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(strIP)
| > %>
| >
| > <input type="text" name="MacADDY" value=<%Response.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.
| >
| >
|
|
|
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,104
Messages
2,570,646
Members
47,248
Latest member
Angelita78

Latest Threads

Top