Hi all.
A friend wants me to write a VB program for him which will, among other things, change the MAC address on his PC. I thought this was something hard-wired into each network card, but he assures me that I'm living in the past, and it can be overridden on most cards these days. (And no, he's not trying to hack anything, to the best of my knowledge.)
So, can anyone give me any pointers on how I might go about doing so? I'll be working in VB6, but put the question in Techie Talk because it's more of a general question about if/how than about the Vb specifics.
Comments, anyone?
I did do some searching, but the most relevant thing I could find was a thread on TheScripts which pointed to this .Net code on another site (which I won't mention, mostly because I forget what it was) which apparently retrieves the address from each network adapter. It's probably loosely related to what I'm looking for. Posting here just in case it helps narrow things down or generate ideas. -
Use the Management Class object in .NET.
-
-
ManagementClass oMClass = new ManagementClass ("Win32_NetworkAdapterConfiguration");
-
-
ManagementObjectCollection colMObj = oMCLass.GetInstances();
-
-
foreach(ManagementObject objMO in colMObj)
-
{
-
Console.WriteLine(objMO["MacAddress"].ToString());
-
}
-
15 6495
Hi all.
A friend wants me to write a VB program for him which will, among other things, change the MAC address on his PC. I thought this was something hard-wired into each network card
I would have said that if it's not "hard wired" it's at least soft wired in a PROM. But I'd (almost) be willing to bet that it's the former.
I would have said that if it's not "hard wired" it's at least soft wired in a PROM. But I'd (almost) be willing to bet that it's the former.
You and me both. But he seems fairly certain of himself, and he does deal with this network stuff quite a bit, albeit at a somewhat "higher" level.
In case anyone's interested, I'm at home now with a bit more to search. Google has found me quite a bit of information on changing MAC addresses.
Now if I could just find the time to read it...
In case anyone's interested, I'm at home now with a bit more to search. Google has found me quite a bit of information on changing MAC addresses.
Now if I could just find the time to read it...
Did you manage to change the MAC?
Did you manage to change the MAC?
Actually, I ended up moving on to other things. Will let you know when I get back to this.
In fact, I may not need to. From what little I've had a chance to read so far, I think I may be able to get away with just changing the HTTP headers that I send, or something.
Stay tuned...
The MAC address is a permanent part of each board placed there by the manufacturer to uniquely identify each board. It is possible to use different addresses in a network but I don't know anything about it. Here is a Wikipedia article that talks about it.
The MAC address is a permanent part of each board placed there by the manufacturer to uniquely identify each board. It is possible to use different addresses in a network but I don't know anything about it. Here is a Wikipedia article that talks about it.
Thanks for that, Doc.
This part of the project is on the back burner for the moment, but I'll bookmark this for when I get back to it.
Often, Windows drivers for network cards (wired and wireless) allow you to override your MAC address. This is usually done by going into the Device Manager, and busting through the Advanced tab until you find something like "Network address" or "MAC Address" with a user-defined field.
I know that you can change your MAC address in Linux using ifconfig.
Be aware, there are certain conventions that come with MAC addresses, assigning an address reserved for wired cards when you have a wireless card could clue network admins to your hijinx. Usually, playing with your MAC address is against the User Agreement for networks.
Often, Windows drivers for network cards (wired and wireless) allow you to override your MAC address. This is usually done by going into the Device Manager, and busting through the Advanced tab until you find something like "Network address" or "MAC Address" with a user-defined field.
I know that you can change your MAC address in Linux using ifconfig.
Be aware, there are certain conventions that come with MAC addresses, assigning an address reserved for wired cards when you have a wireless card could clue network admins to your hijinx. Usually, playing with your MAC address is against the User Agreement for networks.
Thanks for the info.
It doesn't matter if the MAC gives anything away - it's his own server he'll be hitting. I think he's doing some stress-testing, or something like that.
Thanks for the info.
It doesn't matter if the MAC gives anything away - it's his own server he'll be hitting. I think he's doing some stress-testing, or something like that.
Well, tell your friend good luck, and let me know if you need more specifics.
Well, tell your friend good luck, and let me know if you need more specifics.
Will do - thanks.
Atli 5,058
Expert 4TB
Hi
To the best of my knowledge. The MAC address is acctually "hard-coded" into the hardware itself, and you can not change it there.
But I know that the software can "mask" the address so what you send from you is infact not the MAC burned into you device.
How to do that, I haven't a clue :)
Hi
To the best of my knowledge. The MAC address is acctually "hard-coded" into the hardware itself, and you can not change it there.
But I know that the software can "mask" the address so what you send from you is infact not the MAC burned into you device.
How to do that, I haven't a clue :)
Me neither, yet. But it will be good enough.
have you tried macshift or similer
http://devices.natetrue.com/macshift/
also see
http://www.tech-faq.com/change-mac-address.shtml
have you tried macshift or similer
http://devices.natetrue.com/macshift/
also see
http://www.tech-faq.com/change-mac-address.shtml
Not yet. Thanks for the info.
Sign in to post your reply or Sign up for a free account.
Similar topics
by: php newbie |
last post by:
I am getting error messages when I try to delete from a table using
the values in the table itself. The intent is to delete all rows from
TableA where col_2 matches any of the col_1 values.
...
|
by: Markus.Elfring |
last post by:
I am interested to know if the pointer value for the memory address can
be changed by a compiler if the constness of the corresponding type is
cast away.
inline char* deconstify1(char const * X)...
|
by: pw |
last post by:
Hi,
Is that possible if the crosstab query is dynamic? Doesn't seem so as
I have to specify the control source for the text boxes and the number
of columns may change, along with their field...
|
by: nospam |
last post by:
Am I trying to do something that is impossible with access 97?
I want to write an address book application.
I have exported (from a Casio BOSS organiser) all my contact information
and it is...
|
by: Daniel |
last post by:
Hi,
Does anyone know if it is possible to put an aspx page inside of another? OR
run an aspx page and capture the output as a string and then write this out
to a page....
So for example say...
|
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>
...
|
by: Lord0 |
last post by:
Hi there,
Is the following possible with XSLT? Given the following example XML
docs:
<!-- doc 1-->
<user>
<username>myUsername</username>
<password></password>
<phone>12345</phone>
|
by: FAQ server |
last post by:
-----------------------------------------------------------------------
FAQ Topic - How do I change the text in the url/location
bar?...
|
by: Piotr Nowak |
last post by:
Hi,
Say i have a server process which listens for some changes in database.
When a change occurs i want to refresh my page in browser by notyfinig it.
I do not want to refresh my page i.e....
|
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...
|
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: ryjfgjl |
last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
|
by: taylorcarr |
last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
by: aa123db |
last post by:
Variable and constants
Use var or let for variables and const fror constants.
Var foo ='bar';
Let foo ='bar';const baz ='bar';
Functions
function $name$ ($parameters$) {
}
...
|
by: ryjfgjl |
last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
|
by: emmanuelkatto |
last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud.
Please let me know.
Thanks!
Emmanuel
|
by: Hystou |
last post by:
There are some requirements for setting up RAID:
1. The motherboard and BIOS support RAID configuration.
2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
| | |