473,320 Members | 1,832 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Getting MAC & NetBIOS from PHP?

I'm looking to try to get a users MAC and/or NetBIOS name when they visit
my website. It somehow can be done, I'm not sure with PHP, but it can be
done.

Does anyone have any idea how?

As an example check out:
http://stealthtests.lockdowncorp.com/

On that site, there are tests that will display NetBIOS & MAC addresses.
(NOTE: if you are properly firewalled or protected it won't display the
information accurately, however if unprotected and not behind a NAT or
router, it works)

Now how did they do this? & how can I?

Thanx
Jul 17 '05 #1
2 16238
> I'm looking to try to get a users MAC and/or NetBIOS name when they visit
my website. It somehow can be done, I'm not sure with PHP, but it can be
done.

Does anyone have any idea how?
A MAC address in its normal use as an Ethernet address is not
transmitted beyond your local router (but it does pass through
switches and hubs) on an Ethernet connection. Computers connected
by dialup modems may not even HAVE a MAC address. Computers connected
by DSL or cable modem probably pass the MAC address to the first
router on the ISP's end, and no further. Looking at the MAC addresses
coming in to your website will reveal most of them to be the MAC
address of your router, unless you've got a LAN, in which case some
will show up as addresses of local computers on the LAN.

I suspect that NetBIOS may use the MAC address inside the packets
as part of its protocol, and that's how this site gets it. Either
that, or Windows has a MAC-address-query port along with the
credit-card-query port for use by the RIAA to bill you for music.
As an example check out:
http://stealthtests.lockdowncorp.com/

On that site, there are tests that will display NetBIOS & MAC addresses.
(NOTE: if you are properly firewalled or protected it won't display the
information accurately, however if unprotected and not behind a NAT or
router, it works)


It didn't display mine. My systems are on the Internet with public
static IPs and forward and reverse DNS (and the site found correct
IP addresses and DNS, as expected). No NAT. No proxy. The firewall
didn't block anything during this test. But I'm not running Microsoft
software.

It can't display my NetBIOS name because there isn't one.

Gordon L. Burditt
Jul 17 '05 #2
The arp -a command as far as I can tell will only detect other computers
within the same LAN as stated in an email I received. That's helpful, but
there seems to be a way using NetBIOS to get the MAC address.

The website listed in my original post:
http://stealthtests.lockdowncorp.com/

It can get the NetBIOS name and the MAC address of (what appears to be) any
Windows machine directly connected to the internet (no router or firewall
[software or hardware]). Once I unprotected my system, it got my MAC address
and NetBIOS name and it is not on my LAN!

If you have an unprotected Win PC or you can easily (temporarily) unprotect
your PC, try the website.

Does anyone know how they do it?

Thanx
"Gordon Burditt" <go***********@sneaky.lerctr.org> wrote in message
news:bl********@library2.airnews.net...
I'm looking to try to get a users MAC and/or NetBIOS name when they visit
my website. It somehow can be done, I'm not sure with PHP, but it can be
done.

Does anyone have any idea how?
A MAC address in its normal use as an Ethernet address is not
transmitted beyond your local router (but it does pass through
switches and hubs) on an Ethernet connection. Computers connected
by dialup modems may not even HAVE a MAC address. Computers connected
by DSL or cable modem probably pass the MAC address to the first
router on the ISP's end, and no further. Looking at the MAC addresses
coming in to your website will reveal most of them to be the MAC
address of your router, unless you've got a LAN, in which case some
will show up as addresses of local computers on the LAN.

I suspect that NetBIOS may use the MAC address inside the packets
as part of its protocol, and that's how this site gets it. Either
that, or Windows has a MAC-address-query port along with the
credit-card-query port for use by the RIAA to bill you for music.
As an example check out:
http://stealthtests.lockdowncorp.com/

On that site, there are tests that will display NetBIOS & MAC addresses.
(NOTE: if you are properly firewalled or protected it won't display the
information accurately, however if unprotected and not behind a NAT or
router, it works)


It didn't display mine. My systems are on the Internet with public
static IPs and forward and reverse DNS (and the site found correct
IP addresses and DNS, as expected). No NAT. No proxy. The firewall
didn't block anything during this test. But I'm not running Microsoft
software.

It can't display my NetBIOS name because there isn't one.

Gordon L. Burditt
Jul 17 '05 #3

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

Similar topics

3
by: siddharth jain | last post by:
hello I want to write a little console application to get the NetBIOS names of a remote machine...exactly like the command nbtstat -a , but in a programmatic way. I googled around quite a bit...
4
by: rdonnici | last post by:
Hi all, Is there any way to, given an IP address(or NETBIOS machinename - I can convert from one to other) from my network, and assuming that everyone needs to log on a NT/2K/Windows Server 2003...
0
by: Will Price | last post by:
I am having problems using UDPClient.Send() in System.Net.Sockets. Each time I make the call to the function, there is a significant delay from when the code is executed to when the packet...
4
by: TipTop | last post by:
I am trying to use integrated Windows authentication and impersonation to run a page that accesses SQL Server via integrated security. It's not working -- sort of. I've set IIS security to...
4
by: Michael Tissington | last post by:
Is it possible to read the NetBIOS domain name and if so how ? -- Michael Tissington http://www.oaklodge.com http://www.tabtag.com
8
by: =?iso-8859-1?q?Magnus_T=F6rnvall?= | last post by:
Hi! I'm trying to write a program that can tell if a remote computer is running Windows or not. The thing is, it have to go very fast, so I don't want to "connect" to the computer. My plan is...
8
by: =?Utf-8?B?VG9t?= | last post by:
Hi, I need to copy and/or move files across servers to the other side of my firewall. I was wondering if anyone can tell me what port(s) I will need to open to run these methods in my C#...
3
by: Erjan | last post by:
Hi, I am using TcpClient to connect to a device which does not talk NetBios. The TcpClient tries first to do something with Netbios. This probably failes on a timeout and then TcpClient sets up...
4
by: madankarmukta | last post by:
HI, I want to set my computername to be greate than 15 bytes.How can i do that since when i set the name greter that 15 bytes it's give me message that "The NetBIOS name of the computer is...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.