Celestial Coding

Archive => Archives => General => Topic started by: mustafolins on October 24, 2014, 04:48:16 pm

Title: Mac addresses
Post by: mustafolins on October 24, 2014, 04:48:16 pm
I was just wondering if anyone remembered how to change mac addresses on linux in basic. i beleive it was something like
ifconfig wlan0 hw up....
but i cant remember exactly and i don't feel like reading the man pages
Title: Re: Mac addresses
Post by: mustafolins on October 24, 2014, 05:11:11 pm
never mind i remember
Code: [Select]
ifconfig | grep -i hwaddrthis shows you your mac addresses that are on your computer.  you have multiple mac addresses for different devices such as ethernet wlan, etc.
Code: [Select]
ifconfig wlan0 downtake wlan0 interface down so you can edit it
Code: [Select]
ifconfig wlan0 hw ether de:ad:be:af:c0:fechange the ether address to what ever i chose dead beef cofe.
Code: [Select]
ifconfig wlan0 upput wlan0 interface back up
Code: [Select]
ifconfig wlan0display new mac address and properties

this will enable you to continue you logging back in to places that limit your time alotted on the internet such as the library.
so when your time runs out just do this and val la the network thinks your a different computer.
Title: Re: Mac addresses
Post by: mustafolins on October 24, 2014, 05:34:20 pm
i guess i should also add that this is one of the ways you can arp spoof someone.
all you have to do is use wireshark or etherape to see other mac addresses on the network and then you change your mac address to theirs.
Title: Re: Mac addresses
Post by: Nathan on October 25, 2014, 06:08:43 pm
Having duplicate MAC addresses on the same network will cause flapping or other weird networking issues. Assuming the other guy left the wireless - this would work.

http://serverfault.com/questions/462178/duplicate-mac-address-on-the-same-lan-possible

You would be better off with other tricks like IP over DNS:

http://code.kryo.se/iodine/
Title: Re: Mac addresses
Post by: mustafolins on October 26, 2014, 08:51:47 pm
your right it would cause problems if you had two mac addresses that were the same assuming your computer was responding to the packets before the other computer. i don't know what i was thinking the other day this wouldn't work very well for arp spoofing if anything it is an easy way to mess with someones internet connection.