473,528 Members | 2,549 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Mac Address

What is the best way to pull a pc's Mac Address from a web page?

Larry
Jul 19 '05 #1
11 17739
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 !

--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
Jul 19 '05 #2
Shoot, that would work in tandem with ID verification.

"Evertjan." <ex**************@interxnl.net> wrote in message
news:Xn********************@194.109.133.29...
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 !

--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)

Jul 19 '05 #3
Is this for an intranet-only site by chance?

Ray at work

"Larry R. Baker" <lb****@eaglestrike.net> wrote in message
news:OS*************@TK2MSFTNGP09.phx.gbl...
Shoot, that would work in tandem with ID verification.

"Evertjan." <ex**************@interxnl.net> wrote in message
news:Xn********************@194.109.133.29...
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 !

--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)


Jul 19 '05 #4
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
What is the best way to pull a pc's Mac Address from a web page?

Larry

Jul 19 '05 #5
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 <%=sLocation%>" <myfirstname at lane34 dot com> wrote in message
news:eg**************@TK2MSFTNGP11.phx.gbl...
Is this for an intranet-only site by chance?

Ray at work

"Larry R. Baker" <lb****@eaglestrike.net> wrote in message
news:OS*************@TK2MSFTNGP09.phx.gbl...
Shoot, that would work in tandem with ID verification.

"Evertjan." <ex**************@interxnl.net> wrote in message
news:Xn********************@194.109.133.29...
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 !

--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)



Jul 19 '05 #6
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
ms*****@ielearning.com
http://www.ielearning.com
714.637.9480 x17
"Larry R. Baker" <lb****@eaglestrike.net> wrote in message
news:O0**************@TK2MSFTNGP10.phx.gbl...
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 <%=sLocation%>" <myfirstname at lane34 dot com> wrote in message
news:eg**************@TK2MSFTNGP11.phx.gbl...
Is this for an intranet-only site by chance?

Ray at work

"Larry R. Baker" <lb****@eaglestrike.net> wrote in message
news:OS*************@TK2MSFTNGP09.phx.gbl...
Shoot, that would work in tandem with ID verification.

"Evertjan." <ex**************@interxnl.net> wrote in message
news:Xn********************@194.109.133.29...
> 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 !
>
> --
> Evertjan.
> The Netherlands.
> (Please change the x'es to dots in my emailaddress)



Jul 19 '05 #7
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.

"Mark Schupp" <ms*****@ielearning.com> wrote in message
news:%2****************@TK2MSFTNGP09.phx.gbl...
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
ms*****@ielearning.com
http://www.ielearning.com
714.637.9480 x17
"Larry R. Baker" <lb****@eaglestrike.net> wrote in message
news:O0**************@TK2MSFTNGP10.phx.gbl...
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 <%=sLocation%>" <myfirstname at lane34 dot com> wrote in message
news:eg**************@TK2MSFTNGP11.phx.gbl...
Is this for an intranet-only site by chance?

Ray at work

"Larry R. Baker" <lb****@eaglestrike.net> wrote in message
news:OS*************@TK2MSFTNGP09.phx.gbl...
> Shoot, that would work in tandem with ID verification.
>
> "Evertjan." <ex**************@interxnl.net> wrote in message
> news:Xn********************@194.109.133.29...
> > 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 !
> >
> > --
> > Evertjan.
> > The Netherlands.
> > (Please change the x'es to dots in my emailaddress)
>
>



Jul 19 '05 #8
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.

--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
Jul 19 '05 #9
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" <lb****@eaglestrike.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.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!TK2MSFTN GP12.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
|
|
|

Jul 19 '05 #10
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

"Jason M. Murray" <a-*****@online.microsoft.com> wrote in message
news:Va**************@cpmsftngxa06.phx.gbl...
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.

Jul 19 '05 #11
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: <u6*************@TK2MSFTNGP12.phx.gbl>
<Va**************@cpmsftngxa06.phx.gbl>
| 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: <uc**************@tk2msftngp13.phx.gbl>
| Newsgroups: microsoft.public.inetserver.asp.general
| NNTP-Posting-Host: 209.3.214.171
| Path: cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!tk2msftn gp13.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
|
| "Jason M. Murray" <a-*****@online.microsoft.com> wrote in message
| news:Va**************@cpmsftngxa06.phx.gbl...
| > 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.
| >
| >
|
|
|

Jul 19 '05 #12

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

21
15656
by: Alexander N. Spitzer | last post by:
If I have a machine with 3 virtual IP addresses (192.168.1.), how can I start 3 instances of the same RMI application (each started with different properties/configs), each listening on the port 1234, but each instance binds to a different ip address. that is to say: instance #1 binds to 192.168.1.5/port 1234 instance #2 binds to...
8
4574
by: YAN | last post by:
Hi, I want to get the mac address from a machine, which i have the IP address of that machine, how can i do that? I know how to get the mac address of the local machine from the following code: Dim mc As System.Management.ManagementClass Dim mo As System.Management.ManagementObject mc = New...
7
21271
by: Privacy Advocate | last post by:
//crossposted to: comp.lang.javascript, alt.comp.lang.javascript in an effort to get factual answers from JavaScript experts// Simply put; Is it possible to obtain the real (actual) IP address of someone (client) that visits a web site through an anonymous proxy if this person ONLY has JavaScript enabled in their browser? This is NOT a...
33
3118
by: baumann.Pan | last post by:
hi all, i want to get the address of buf, which defined as char buf = "abcde"; so can call strsep(address of buf, pointer to token);
4
6273
by: andreas.w.h.k. :-\) | last post by:
How do I change the address location in the wsdl <wsdl:port name="SearchSoap12" binding="tns:SearchSoap12"> <soap12:address location="http://searchservices/engine/search.asmx" /> </wsdl:port> Anderas
1
2922
by: Phoenix_ver10 | last post by:
I have a mailing list with multiple names going to the same addresses. I need one address with all the names for that address on it. I checked out the example on microsoft's site, but A: It doesn't work (error that there is an extra parenthise (sp?) ) and B: Will only let in two names for each record. If there are three, the middle on is...
1
2346
by: Jamie J. Begin | last post by:
I'm very new to the world of Python and am trying to wrap my head around it's OOP model. Much of my OOP experience comes from VB.Net, which is very different. Let's say I wanted to create an object that simply outputted something like this: Developer Detroit Michigan
6
7012
by: Nicolas Noakes | last post by:
Hello, I would like to convert to following process to code. Any advice is welcome. I have a hardware device which requires the this procedure to set it's IP address. First create an static ARP entry for the device's MAC address and the desired IP address. Then telnet to this IP address on TCP port 1. This will set the device to...
36
3360
by: Julienne Walker | last post by:
Ignoring implementation details and strictly following the C99 standard in terms of semantics, is there anything fundamentally flawed with describing the use of a (non-inline) function as an address? I keep feeling like I'm missing something obvious. -Jul To keep things in context, this is in reference to describing functions to a...
1
3112
by: saravanatmm | last post by:
I need javascript code for validate the email address. Email address field cannot allowed the capital letters, special characters except '@' symbol. But can allowed the small letters, numeric numbers. Now i use this script for validate the email address. But it allows the cpital letters otherwise its working correctly. SCRIPT FUNCTION ...
0
7332
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7255
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7608
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
1
5187
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
4823
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3322
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1708
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
894
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
556
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.