[Completed] MAC Changing in GT-S5302 - XDA Assist

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. ?

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.

OpenVPN on Defy

hello..
i've been trying to get openvpn to work on my Defy but no luck so far.
what i've done is:
-install busybox
-install openvpn settings and installer
-found my tun.ko
-copied my openvpn config to sdcard
-changed openvpn settings
-the vpn tunnel is created and connection is made but traffic doesnt seem to be routed to the tunnel
did anyone manage to get openvpn to work on Defy?
it was working fine for me for different android devices.
i used this tutorial:
hxxp://www.android-hilfe.de/root-hacking-modding-fuer-motorola-defy/58423-openvpn-auf-dem-defy-2.html
I use the phone's own VPN settings under Wireless & Networks and manage to get things working without any problems.
tim440 said:
I use the phone's own VPN settings under Wireless & Networks and manage to get things working without any problems.
Click to expand...
Click to collapse
this is for PPTP or IPSEC but not OpenVPN.
Ohhh.... Good i found this thread, maybe you guys will be able to help me...
I have a working VPN connection from for ex. my laptop > home (PPTP)
But i am unable to connect to it using Defy's original VPN connection...
I get:
"Unable to connect to the network. Do you want to try again?"
Also - what does mean this "DNS Search Domains " setting?
Darmach said:
Ohhh.... Good i found this thread, maybe you guys will be able to help me...
I have a working VPN connection from for ex. my laptop > home (PPTP)
But i am unable to connect to it using Defy's original VPN connection...
I get:
"Unable to connect to the network. Do you want to try again?"
Also - what does mean this "DNS Search Domains " setting?
Click to expand...
Click to collapse
what ROM are you using? on 2.2.1 L2TP works fine but not PPTP.
your options:
1. try L2TP or L2TP/IPSEC if your provider supports it
2. if your on a 2.1 ROM, try a 2.2.1 ROM
as for DNS search domains, you can put google's for example 8.8.8.8
or leave it blank if after connection is successful you can browse without problems.
Im on 2.1 - so its just that that on 2.1 PPTP is not working?
So DNS search domain are just specifying the DNS'es you will be using on this connection?
Darmach said:
Im on 2.1 - so its just that that on 2.1 PPTP is not working?
So DNS search domain are just specifying the DNS'es you will be using on this connection?
Click to expand...
Click to collapse
1. Yes, at least for me.
2. correct
does anyone here still need help with openvpn?
i managed to run openvpn through a dns tunnel over a public hotspot at the airport.
this works on most of the newer (hotspot)systems but is extremely slow.
i got it working, i will post the steps later on.
nolimitzz said:
i got it working, i will post the steps later on.
Click to expand...
Click to collapse
Hi,
Having the same issue as you.. My OpenVPN Connects but no unable to ping even the IP address.. Same Config ovpn file is working on previous phones. Please kind share you workaround . Thanks in advance
voided said:
Hi,
Having the same issue as you.. My OpenVPN Connects but no unable to ping even the IP address.. Same Config ovpn file is working on previous phones. Please kind share you workaround . Thanks in advance
Click to expand...
Click to collapse
Found the solution! here u go!
1. install openvpn-installer
2. Run openvpn-installer and during installation point to busybox (ifconfig/route) at at /system/xbin/bb
3. create the directory at /system/xbin/bb
Code:
mkdir /system/xbin/bb
4. Make symbolic links to ifconfig and route
Code:
ln -s /system/xbin/ifconfig /system/xbin/bb/ifconfig
ln -s /system/xbin/route /system/xbin/bb/route
enjoy~!
1) Install busybox using busybox installer from market, choose to install busybox in:
/system/bin
(dont install in /system/xbin , if already installed, please delete route and ifconfig in /system/xbin first very importanttttt)
Install Openvpn from Openvpn Installer in /system/xbin
using root explorer or whatever you use, replace openvpn binary with this:
http://github.com/downloads/fries/android-external-openvpn/openvpn-static-2.1.1.bz2
dont forget to change the permissions
using adb or terminal emulator:
Code:
su
mount -o rw,remount /dev/block/mmcblk1p21 /system
ln -s /system/bin/route /system/xbin/route
ln -s /system/bin/ifconfig /system/xbin/ifconfig
mkdir /system/xbin/bb
ln -s /system/xbin /system/xbin/bb
use openvpn settings to set your options (insmod for tun.ko, tun.ko location, openvpn location)
my main problem, which i dont know why, was because busybox is installed in system/xbin, while it should be installed in system/bin and then using symlink to system/xbin
anyway it works for me now, let me know if it does for you.
did you install busybox to /system/xbin/?
did you create /system/xbin/bb? and symlink route and ifconfig to that folder?
i hope you guys can post step by step tutorial here .. this is my first android phone ...
thanks !

[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.

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

Unable to change MAC Address in rooted Moto G with Kit Kat 4.4.4

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

Categories

Resources