Unable to change MAC Address in rooted Moto G with Kit Kat 4.4.4 - Moto G Q&A, Help & Troubleshooting

Hi guys,
trying to spoof my Moto G's MAC for Ethical Hacking purposes, I haven't been able to find a way.
I've tried with some of the different apps in the market, as MAC Spoofer, Mac Address Ghost, ChameleMAC and zANTI. With none of them could do it.
Neither using a terminal plus busybox.
Using the terminal I found out that isn't possible to modify the MAC when the Wi-Fi is off, as this is the way it's done in some Linux distributions (busybox ifconfig wlan0 down + busybox ifconfig wlan0 hw eth XX:XX:XX:XX:XX:XX)
I've also found information in Inet about problems with some devices spoofing MAC with Kit Kat.
Any advice? Thank you in advance!

K_Tico locate your WiFi file in / partition of your device than you can edit your Mac copy that file in SDcard then open that file in your PC using Hex editor enter desired Mac from column 4 to 9 do not edit others...
---------- Post added at 04:12 AM ---------- Previous post was at 04:10 AM ----------
K_Tico said:
Hi guys,
trying to spoof my Moto G's MAC for Ethical Hacking purposes, I haven't been able to find a way.
I've tried with some of the different apps in the market, as MAC Spoofer, Mac Address Ghost, ChameleMAC and zANTI. With none of them could do it.
Neither using a terminal plus busybox.
Using the terminal I found out that isn't possible to modify the MAC when the Wi-Fi is off, as this is the way it's done in some Linux distributions (busybox ifconfig wlan0 down + busybox ifconfig wlan0 hw eth XX:XX:XX:XX:XX:XX)
I've also found information in Inet about problems with some devices spoofing MAC with Kit Kat.
Any advice? Thank you in advance!
Click to expand...
Click to collapse
Check my reply.... on your post

Related

[Q] How change MAC ADDRESS on Samsung Galaxy Ace

Hi guys. I have a rooted samsung galaxy ace and i want to change my mac address so i've tried the following command (but i got an error):
Code:
su
busybox ifconfig wlan0 down
busybox ifconfig wlan0 hw ether 00:11:22:33:44:55
ifconfig: SIOCSIFHWADDR: Operation not supported
Is there someone that knows how i can solve this problem? thnx in advance
I have a Moto XT300/Spice.
Enabling the wireless and not have it connect automatically to the configured network, had to forget the network, I was able to run:
Code:
su
busybox ifconfig eth0 hw ether 00:11:22:33:44:55
and it worked, confirmed with
Code:
busybox ifconfig eth0
though I wasn't able to connect to a WPA network anymore, complained that the key was wrong.
Disabling wireless and enabling once more got reset the mac but enabled me to connect again.
And yes, my wireless interface is eth0.
I was tinkering around on my android and found the section where wifi info is specified, including mac address. Did a quick google search and found the article:
http://androidforums.com/t-mobile-g1/3506-changing-spoofing-mac-address.html
Basically you must change the file /data/misc/wifi/nvram.txt, at the end of the file is the mac addr...
Apparently it is bad to reboot with different mac... who knows. I haven't tested it.
snakerdlk said:
I was tinkering around on my android and found the section where wifi info is specified, including mac address. Did a quick google search and found the article:
hxxp://androidforums.com/t-mobile-g1/3506-changing-spoofing-mac-address.html
Basically you must change the file /data/misc/wifi/nvram.txt, at the end of the file is the mac addr...
Apparently it is bad to reboot with different mac... who knows. I haven't tested it.
Click to expand...
Click to collapse
Ok, i will try that method although it seems strange that the ipconfig command doesn't work :-/
It is probably the fault of the driver that ifconfig wlan0 hw ether does not work.

[Q]Spoofing MAC on Galaxy Ace [Details&attempts listed]

Hey all,
I'm trying to spoof my MAC address on the Galaxy Ace, though nothing seems to be working. [Details and attempts listed below]
Phone Details:
Samsung Galaxy Ace GT-S5830
OS: Stock Gingerbread 2.3.5
Rooted
Installed Software:
Superuser
ES File Explorer (with show hidden (. prefix) files turned on & up to root enabled, root R/W)
Busybox (Free)
Android Terminal Emulator
(all with Superuser permissions)
What I've tried:
First I cleared the phone's IP DCHP lease in the router.
In Terminal on the phone whist not connected to a network, but wifi turned on I:
su
ifconfig wlan0 down
ifconfig wlan0 hw ether 112233445566
ifconfig wlan0 up
iplink show wlan0
Click to expand...
Click to collapse
also tried
su
ifconfig wlan0 down
iplink set wlan0 address 11:22:33:44:55:66
-->At which point I get (even with busybox prefixed)
iplink: SIOCSIFHWADDR: Operation not supported
Click to expand...
Click to collapse
The first code I quoted gave me no errors and appeared to execute successfully, but iplink show wlan0, the router (once the phone had connected), and several other tools (to see if ANY could see the change) also displayed the phone's default MAC.
(I also tired: ifconfig wlan0 hw link 112233445566, offsetting the existing MAC by only 1, and prefixing commands with busybox - busybox ifconfig wlan0 hw ether 112233445566 -resulted in ifconfig: SIOCSIFHWADDR: Operation not supported)
Looking for /data/misc/wifi/nvram.txt. Can see /data/misc/wifi/nvram.info containing my MAC. Have edited this and tried joining network again, but no MAC change is showing. Have read it's a rather bad idea to restart the phone before changing the MAC in files back, [Why?] so am yet to do a restart to test the file change...
Various apk tools (preceded by clearing DHCP lease for phone's IP & proceeded by checking router & iplink show wlan0) including:
Wireless MAC Changer - Osama Abukmail
Mac Address Ghost - diewland
MAC Spoofer for HD2 - Ian Kim (as the description stated although for a HD2, there was a change it may work for other types [later found out mine doesn't use/have /system/etc/calibration])
(all with super permissions)
Does anyone know of, or have any other ideas that may work?
Is this possible with only Custom ROM's?
Much thanks in advance,
Blue
MAC address spoofing is a type of discussion that XDA does not allow. For that reason, thread closed.

[Completed] MAC Changing in GT-S5302

I want to change the wifi mac address of my GT-S5302. I have tried many apps like Wireless Mac Address Changer but all failed. Can anyone show me the right way to change or spoof it.
Thanx in advance :good: .
HI,
I found a couple guides on this,
http://forum.xda-developers.com/showthread.php?t=2687708
http://forum.xda-developers.com/showthread.php?t=2286440
If those don't help, you will need to try asking here, as there's no specific section for your device..
>*Android Development and Hacking*>*Android Q&A, Help & Troubleshooting
Good luck!
---------- Post added at 12:50 AM ---------- Previous post was at 12:48 AM ----------
I'll add, that any questions or issues you have with that device should be asked in the section I linked last... in the future. ?
Tried this:
busybox ifconfig //determine device usually eth0
busybox ifconfig eth0 down //shuts down eth0
busybox ifconfig eth0 hw ether 00:00:00:00:00:00 //sets eth0's mac to 00...
busybox ifconfig eth0 up //turn eth0 back on
busybox ifconfig //check to see if eth0 is set to new mac
After changing MAC when i execute "busybox ifconfig" the new mac is reflected but it is not letting me connect to my existing network. I have to restart wifi to get connected but it resets the mac address to the original one.
Also tried editing the ".nvmac.info" , "nvram.txt" ,"nvram_mfg.txt" but all in vain
Please suggest me a solution . I will also post this question to the thread you mentioned.
Please see The Purpose of XDA Assist
So yes, please ask in the section I linked you to. ?

how to run the WIFI under recovery

hello i run a linux located on sdcard ( mount and links ) under CWM it is normally an android machine i am searching for a script to start the wifi correctly
i know it is something with wpa_supplicant and dhcpd but help from an expert will be usefull
i also do insmod .... with the wifi module
thanks
PS :if i found a good solution i will post here
my script to get linux is http://jeanmichel.gens.free.fr/etc/install
jean.michel.78 said:
hello i run a linux located on sdcard ( mount and links ) under CWM it is normally an android machine i am searching for a script to start the wifi correctly
i know it is something with wpa_supplicant and dhcpd but help from an expert will be usefull
i also do insmod .... with the wifi module
thanks
PS :if i found a good solution i will post here
my script to get linux is http://jeanmichel.gens.free.fr/etc/install
Click to expand...
Click to collapse
Lol , never knew you could do that
what do you mean
possible to
1 run linux
or
2 run wifi
i am progressing
first i configure /etc/network/interfaces with
auto wlan0
iface wlan0 inet dhcp
wpa-ssid MY_NET
wpa-key my_password
wpa-conf /etc/wpa-supplicant.conf
then i run
ifup wlan0
i see that it runs a lot of things by strace ....dhclient ,etc... , wpa_supplicant
but it stops because socket wlan0 is not created

Device or resource busy- Motorola g9 plus

when i am trying to change mac address with command busybox ifconfig wlan0 hw ether + new mac it says Device or resource busy,Does anyone know how to change or what is the correct command to make the change? Thanks.

Categories

Resources