Friday, 21 February 2014
4
6. Double-Click On the Create MAC KeyButton(Create Registry Key)
7. Run The Project Press "F5"
Thank You Watching My Blog Any Question To Comment it.
How To Create Own MAC Address Changer in C#.Net 2013
How To Create Own MAC Address Changer in C#.Net 2013
Today i will teach you how to Create a MAC Address Changer in C#.NET , Making your own MAC Address Changer would be awesome.
1. Open Visual C#.Net 2013 in Run As Administrator
2. Select Tab File -> New -> New Project -> Windows Forms Application
3. Project Name "Windows MAC Address"
4. Double-Click On the Set New MAC Button(Change The value of registry key)
5. Double-Click On the Read Current MAC Button(Show The Value Of Registry Key)
Today i will teach you how to Create a MAC Address Changer in C#.NET , Making your own MAC Address Changer would be awesome.
1. Open Visual C#.Net 2013 in Run As Administrator
2. Select Tab File -> New -> New Project -> Windows Forms Application
3. Project Name "Windows MAC Address"
4. Double-Click On the Set New MAC Button(Change The value of registry key)
string mac = textBox1.Text;
RegistryKey rkey;
rkey = Registry.LocalMachine.OpenSubKey(@"SYSTEM\CurrentControlSet\Control\Class\
{4D36E972-E325-11CE-BFC1-08002BE10318}\0011", true);
rkey.SetValue("NetworkAddress", mac);
MessageBox.Show("Disable The Network Adapter. Than Enable The Network Adapter.");
rkey.Close();
5. Double-Click On the Read Current MAC Button(Show The Value Of Registry Key)
RegistryKey rkey; string app; rkey = Registry.LocalMachine.OpenSubKey(@"SYSTEM\CurrentControlSet\Control\Class\ {4D36E972-E325-11CE-BFC1-08002BE10318}\0011", true); app = (string)rkey.GetValue("NetworkAddress"); rkey.Close(); textBox2.Text = app;
6. Double-Click On the Create MAC KeyButton(Create Registry Key)
RegistryKey rkey; rkey = Registry.LocalMachine.CreateSubKey(@"SYSTEM\CurrentControlSet\Control\Class\ {4D36E972-E325-11CE-BFC1-08002BE10318}\0011"); rkey.SetValue("NetworkAddress", "000011112222");
7. Run The Project Press "F5"
Thank You Watching My Blog Any Question To Comment it.
Subscribe to:
Post Comments (Atom)
4 Responses to “How To Create Own MAC Address Changer in C#.Net 2013”
8 February 2016 at 12:37
An unhandled exception of type 'System.NullReferenceException' occurred in ChangeMac.exe
31 January 2017 at 08:56
For the sake of giving a suggestion use a catch:
catch (NullReferenceException ex)
{
MessageBox.Show("ERROR! " + "\r\n" + ex.Message);
}
31 January 2017 at 08:58 This comment has been removed by the author.
31 January 2017 at 09:00
Something else, this is nice simple code but not always works depending on system setup. As-is, I get a popup dialog that states:
Disable the network adapter. Than enable the network adapter.
Regardless of doing that the same dialog keeps occurring. I ran the .exe as admin.
Post a Comment