RSS

Set a fake MAC address !

09 Dec

I got this tutor from many sources, i forgot, it’s not that i don’t want to give ‘em credit, but also knowing that this is just for knowledge purpose so i hope it’d help. But for windows, i put a credit for the authors.

Change MAC address in Ubuntu :

- Easy way

First, you need to download a macchanger if you don’t have it. You can download it using

~$ sudo apt-get install macchanger

. There are several commands in macchanger, but what is used mostly is

~$ sudo macchanger -m xx:xx:xx:xx:xx:xx <interface>

Interface could be wireless or Ethernet, mostly eth0 or wlan0 and you must omit the brackets. The xx is the number for new MAC address.
- Manual

This can be done using text editor, such as gedit, nano, scite or other applications. To change it type this command :

~$ sudo text_editor_you_want /etc/network/interfaces

Well, I’m going to out of topic for a second in this section. Because I think it’s worth it to solve some bugs. What I mean were those whose computer having slow booting in Ubuntu. Slow booting might be caused by many problems, but if you encountered that your network-manager in tray-icon won’t shows up at start up, then maybe it’ll help.

After you type the above command, then mostly the output would be like this :

auto lo
iface lo inet loopback
auto pan0
iface pan0 inet dhcp
auto wlan0
iface wlan0 inet dhcp
auto eth0
iface eth0 inet dhcp

If you see at the bootchart, as for those who’s having problem at the slow booting, there would be a merely long initializations at networking. It will assign an automatic DHCP that’d augment more seconds at booting time. You can deactivate this by adding ‘#’ character at the beginning of line after the first line, like this :

auto lo
iface lo inet loopback
#auto pan0
#iface pan0 inet dhcp
#auto wlan0
#iface wlan0 inet dhcp
#iface eth0 inet dhcp
#auto eth0

Back to topic. If you decide to continue to change your MAC, add the following code at the next line of the interfaces you desired.

hwaddress ether xx:xx:xx:xx:xx:xx

Note the xx is MAC address format. Example :

auto eth0
hwaddress ether 00:16:a2:a3:45:bc

Save the file, then restart networking by using init.d :

sudo /etc/init.d/networking restart

Change MAC address in windows :

Credit:
Kyle Lai, CISSP, CISA
KLC Consulting, Inc.

http://www.klcconsulting.net
Artical URL: HYPERLINK “http://www.klcconsulting.net/change_mac_w2k.htm

I’m running on HP laptop with Intel Corporation PRO/100 VE Network Connection, and it has this method #1 configuration. (This next article is copied from http://www.klcconsulting.net/change_mac_w2k.htm , please tell me if this violates the law).

Method 1:

This is depending on the type of Network Interface Card (NIC) you have. If you have a card that doesn’t support Clone MAC address, then you have to go to second method.

    1. Go to Start->Settings->Control Panel and double click on Network and Dial-up Connections.

    2. Right click on the NIC you want to change the MAC address and click on properties.

    3. Under “General” tab, click on the “Configure” button

    4. Click on “Advanced” tab

    5. Under “Property section”, you should see an item called “Network Address” or “Locally Administered Address”, click on it.

    6. On the right side, under “Value”, type in the New MAC address you want to assign to your NIC. Usually this value is entered without the “-“ between the MAC address numbers.

    7. Goto command prompt and type in “ipconfig /all” or “net config rdr” to verify the changes. If the changes are not materialized, then use the second method.

    8. If successful, reboot your systems.

Method 2:

This method requires some knowledge on the Windows Registry. If you are not familiar with Windows Registry, just use the SMAC tool to change the MAC addresses, or consult with a technical person before you attempt on the following steps. Also, make sure you have a good backup of your registry.

a. Goto command prompt and type “ipconfig /all”, and

I. Record the Description for the NIC you want to change.

II. Record the Physical Address for the NIC you want to change.  Physical Address is the MAC Address


figure 1.

b. Goto command prompt and type “net config rdr”, and you should see something like


figure 2.

c. Remember the number between the long number (GUID) inside the { }. For example, in the above “net config rdr” output, for MAC address “00C095ECB793,” you should remember {1C9324AD-ADB7-4920-B02D-AB281838637A}. You can copy and paste it to the Notepad, that’s probably the easiest way.  (See figure 2.)

d. Go to Start -> Run, type “regedt32” to start registry editor. Do not use “Regedit.”

e. Do a BACKUP of your registry in case you screw up the following steps. To do this

I. Click on “HKEY_LOCAL_MACHINE on Local Machine” sub-window

II. Click on the root key “HKEY_LOCAL_MACHINE”.

III. Click on the drop-down menu “Registry -> Save Subtree As” and save the backup registry in to a file. Keep this file in a safe place.

f. Go to “HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Class\{4D36E972-E325-11CE-BFC1-08002BE10318}.  Double click on it to expand the tree. The subkeys are 4-digit numbers, which represent particular network adapters.  You should see it starts with 0000, then 0001, 0002, 0003 and so on.  (See figure 3.)


Figure 3.

g.  Go through each subkey that starts with 0000.  Click on 0000, check DriverDesc keyword on the right to see if that’s the NIC you want to change the MAC address.  The DriveDesc should match the Description you recorded from step (a.-I.).  If you are not 100% sure about the DriverDesc, then you can verify by checking if the NetCfgInstanceID keyword value matches the GUID from step (c).
If there is no match, then move on to 0001, 0002, 0003, and so on, until you find the one you want.  Usually 0000 contains the first NIC you installed on the computer.
In this demonstration, 0000 is the NIC I selected. (See figure 3.)

h.  Once you selected the subkey (i.e. 0000), check if there is a keyword “NetworkAddress” exist in the right side of the window. (See figure 3.)

I. If “NetworkAddress” keyword does not exist, then create this new keyword:

i. Click on the drop down menu “Edit -> Add Value”.

ii.  In the Add Value window, enter the following value then click OK.  (See figure 4.)
Value Name: = NetworkAddress
Data Type: = REG_SZ


Figure 4.

iii.  String Editor window will pop up at this time (see figure 5.)

iv.  Enter the new MAC address you want to modify.  Then click OK.
(There should not be any “-” in this address.  Your entry should only consist of 12 digits as seen in the figure 5.)

II. If “NetworkAddress” keyword exists, make sure it shows the keyword type is REG_SZ, and it should show as NetworkAddress:REG_SZ: .  This keyword might not have a value at this time.

i. Double click on the keyword NetworkAddress and the String Editor window will pop up. (See Figure 5.)

ii.  Enter the new MAC address you want to modify.  Then click OK.
(There should not be any “-” in this address.  Your entry should only consist of 12 digits as seen in the figure 5.)


Figure 5.

j. There are 2 ways to make the new MAC address active.  Method I does not require a system reboot:

I.  Goto Start->Setting->Control Panel, and double click on “Network Neighborhood”.
WARNING: Make sure you understand that you WILL lose the network connection after completing step “ii.” below, and
if you have a DHCP client, you will get a new IP address after completing step “iii.”

i.  Select the Network Adaptor you just changed the MAC address.

ii.  Right click on the selected Network Adaptor and click “Disable.”
Verify the status column for this adaptor changes to “Disabled”

iii.  Right click on the selected Network Adaptor and click “Enable.”
Verify the status column for this adaptor changes to “Enabled”

iv.  If for any reason it cannot be disabled or re-enabled, you have to
reboot your system to make the changes effective.

II.  Reboot your Windows system.

k.  Once completing step j (if rebooting the system, wait until the reboot is completed), go to command prompt, type “ipconfig /all” to confirm the new MAC address.

Restore The TRUE Hardware burned-in MAC Address:

  1. Remove the entry you added:

  1. If you followed Method 1, then go back to the advanced properties window and remove the entry you add.

  2. If you followed Method 2, then remove the “NetworkAddress” keyword you added in the registry.

  1. Use step (j) above to activate the change you make.

  2. Once rebooted, go to command prompt, type “ipconfig /all” to confirm the original MAC address.

If MAC Address changes does not work:

If for whatever reason the MAC address cannot be changed using method 2, make sure you restore the registry setting by following the “Restore The TRUE Hardware burned-in MAC Address” instruction above. If necessary, restore the registry you just backed-up to get your system back to the original state. You can do this by clicking on the drop-down menu “Registry->Restore,” and restore your backup registry file.

or use SMAC

About these ads
 
3 Comments

Posted by on 9 December, 2008 in Comp-Techno

 

Tags: , ,

3 responses to “Set a fake MAC address !

  1. soranjaf

    24 July, 2009 at 2:31 pm

    i whont to chang mac addrees for nokia n82 whaw can you to help me

     
  2. samiunn

    20 September, 2009 at 2:23 pm

    I’m sorry, but i believe that there’re almost impossible for the symbian phone to change the MAC address, but i don’t for the Windows Mobile or the new Android.

     
  3. Thetruthaboutsteroids.com

    8 August, 2013 at 3:56 am

    I am curious to find out what blog system you are working with?
    I’m experiencing some minor security problems with my latest website and I’d like to find something more secure.
    Do you have any solutions?

     

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

 
Follow

Get every new post delivered to your Inbox.

Join 48 other followers

%d bloggers like this: