Ubuntu 10.10-Spoofing a Mac address

Discussion in 'Silicon (v)Alley' started by tranced22, Feb 10, 2011.

  1. #1 tranced22, Feb 10, 2011
    Last edited by a moderator: Feb 10, 2011
    Okay, so this is kind of a continuation of another post I made(no replies though :( ) Anyway, in the search of a way to get my internet working on the school network, I have been pointed in the direction of spoofing my mac address(by the IT department on campus-even though they couldn't actually get it working... lol)

    I noticed that there is a function to do this inside the Ubuntu, when you go under 'Edit Connections' and then under the 'Wireless' tab, and then i can select the network I'm connected to (it tells me when it was last used, and the current one says 'now') and hit edit. Then within the edit page, on the first tab it takes me too there are 2 blank spaces that are labeled 'Device MAC address' and 'Cloned MAC address' and from the way i understand it, i put in the machines current mac address in the 'Device MAC address', and the MAC address i want in the cloned section.

    However when i hit apply and it saves the settings, it automatically reconnects to the network(the same one) however it doesn't have the applied settings. So when I go back into wireless connections tab, I know see two entries with the same name, one that says im currently connected to, the other says last connected, x minutes ago, and well it just says how long its been, and the one that I am connected to has the default settings, and the one with the saved settings is listed as a different connection with the same name.

    Anyone have any ideas on why this happens?
    (i've also tried a guide on the how to geek website Change your Network Card MAC Address on Ubuntu - How-To Geek - which didn't work either )

    *EDIT* I was able to succesfully spoof my mac address, however after doing so it no longer is detecting any networks, i have tried restarting a couple times, as well as running
    sudo /etc/init.d/networking restart
    but with no success

    I appreciate any help :)
     
  2. have you tried macchanger?
    apt-get install macchanger
    randomize: macchanger -r
    specify: macchanger -m xx:xx:xx:xx:xx:xx

    what's ifconfig saying?
     
  3. One of the IT guys did install MAC Changer, and we tried that and that didn't seem to work (tbh though they weren't really all that helpful, cause they weren't even able to get my ifconfig to see any of the new mac addresses we put in). I was able to change it and eventually to connect to the network, however everytime i would connect to the network, it would just return my MAC address to the original one. I was able to connect by simply telling it to connect to the dorms network, however it would attempt to connect then lose the connection, then i would see the network on the network list, then when i try to connect to that it works but as i said, has the original mac address again.

    I'll go ahead and try using the MAC Changer program again though see how that goes.
     
  4. #4 altoid, Feb 11, 2011
    Last edited: Feb 11, 2011
    You might wanna also try testing with a live-cd of backtrace, it comes with macchanger and it can be used to change your address and connect out of box. Then you'd know if it was the network or your install giving the issues. Why are you copying a mac address anyway? Is this a computer already on the network? If so you might be fighting for the router's attention (although from what I've read, linux *should* be more aggressive about things).

    edit: also, macchanger or ifconfig method shouldn't make a difference, you should be able to use either method, but macchanger is what I use because I'm lazy!
     
  5. Well the issue is, for my school network they use a program called SafeConnect, which requires windows and mac users to download and install a policy key, and for linux users its only supposed to require an online authentication. However because I have windows 7 on there also and its set up on a dual boot, the network is seeing my computer as a windows machine, and therefore its prompting me to install the policy key which i can't run. So I'm trying to spoof a mac address so it will be seen as its own computer and recognize it properly as a linux machine.
     

  6. What OS do you have as the default OS? You might try to make a Linux the Default OS so that the server see GRUB at boot and then you might not have this trouble.
     
  7. Well... im not really sure what you mean by default OS... cause if I power my computer on and do nothing, it will auto boot into ubuntu after like 10 seconds or whatever the timer is, but I originally had Vista on there and then upgraded to win 7, so that was on there before ubuntu was. I'm also not completely sure how that would help, maybe you can expand on that? also why would the server see the grub launcher? I can't connect to the network while i'm in the grub launcher?
     

Share This Page