473,666 Members | 2,131 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 16263
> 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.o rg> wrote in message
news:bl******** @library2.airne ws.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
9493
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 but without success. Could someone plz guide me how to go abt doing this. Thanks Siddharth
4
15890
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 Server, to discover the user name for the user logged on that machine? The final result desired is something like a table, with pairs at the moment the program is run. Any ideas? I have hunted high and low on the newsgroups and have not...
0
1220
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 actually goes out. I took a look at the traffic and found that each time the UDPClient.Send() call was made, two UDP netbios messages go out on port 137. The device on the other end responds each time with an ICMP. After two attempts, the .Send...
4
1624
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 integrated Windows authentication (and unchecked the other options). I've set the web.config to use Windows authentication and set impersonation to true. The connection string includes Integrated Security = SSPI. And it works... if you access the...
4
3639
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
7803
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 to send a netbios request and if I get a response I know it's probably a Windows machine. The problem is that I can't use the Netbios function in NETAPI32.DLL,
8
5930
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# program? TIA, Tom
3
2404
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 the TCP connection. Due to this it takes about 5 secons to set up a TCP connection on a LAN. Is it possible to disable the NetBios request ? I have rewritten the program with sockets but also sockets try to
4
7042
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 limited to 15 bytes" . Can anybody tell me how can i edit this limit of 15 bytes of NetBIOS name ..? Thanks!
0
8444
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 usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8869
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8781
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8639
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 choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7386
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
4368
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2771
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
2
2011
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1775
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 effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.