Is there any way to spoof a Mac address on the mytouch?
I've tried opening up the terminal on my rooted phone, and using ifconfig -a, but it finds nothing.
Any help?
If you don't mind me asking...why exactly are you trying to do this?
There might be a way to CLONE the MAC address, but as far as reproducing a spoof or FAKE one; doubtful.
Not sure though.
Oh sorry, I posted on my phone, and I thought it replied. Basically, the school I am enrolled in is giving away free ITouches hooked up to the School's wifi. However, I don't want to use the ITouch, but instead want to use the MyTouch.
I've tried ifconfig -a, but it results in nothing, so the normal linux way "ifconfig eth0" won't work.
If it's linux, there should be a way, I'd think and I do have root.
Thanks.
Edit: Well I found out that Android uses BusyBox at least for the terminal, so I should be using ip, however I still can't find any devices names eth0. Is there a specific name for the network interface?
Sorry for double posting, but does anyone know how to use the 'ip' command with BusyBox?
You are going to have to dig deeper than IP to spoof a mac address. mac is the physical id of a network device. IP is a logical ID.
I understand that.
I only need to spoof the mac address. On a linux machine, it takes one command:
Code:
ifconfig eth0 hw ether XX:XX:XX:XX:XX:XX
There has to be a similar way to do it on Android, since it seems to be a Debian base running BusyBox. According to the extremely limited information regarding busybox, the command that is supported is ip, rather than ifconfig, but I can't figure out how to use it correctly.
What I really need to know is how Android set the wifi connections, since running ifconfig as root in the terminal finds no devices. I can't figure out how exactly the 'ip' command works. The only info I have is:
Code:
ip [OPTIONS] {address | route | link | tunnel | rule} {COMMAND}
ip [OPTIONS] OBJECT {COMMAND} where OBJECT := {address | route | link | tunnel | rule} OPTIONS := { -f[amily] { inet | inet6 | link } | -o[neline] }
If anyone knows what this exactly means (I don't use linux regularly), that would be great as well.
Okay, now I'm stuck.
The address for tiwlan0 is correctly set, but it still won't connect. The output of the command:
Code:
ip link show dev tiwlan0
shows the correct address, but I still cannot connect.
It is possible. i have given procedure for LG Optimus One. Same can be used for u'r phone. Just have to locate nvram.txt file. and appen line "macaddr = XX:XX:XX:XX:XX:XX" Where "XX:XX:X..." is u'r new mac address.
Here's the link
http://forum.xda-developers.com/showthread.php?t=917684
Hi all,
I am wondering if this is working on the N4 out of interest. So far I've been trying to spoof it though the following commands in the terminal emulator:
su
busybox ifconfig wlan0 hw ether *MAC address here*
Though it appears in ifconfig as the changed MAC address, my router displays the permanent, original MAC address.
I have rooted my Nexus 7. Currently, the only way to change my MAC address is the following:
Code:
$ echo -n <MAC> > /persist/wifi/.macaddr
Using busybox ifconfig seems to work because new HWaddr is shown but in fact it doesn't - Settings->About tablet->Status shows old Wi-Fi Mac address. Additionally I cannot connect to AP any more. OpenWRT says:
deauthenticated due to local deauth request
Click to expand...
Click to collapse
I can write a script to automatically write new MAC to /persist/wifi/.macaddr and reboot, no problem, but I would prefer to avoid rebooting.
Kernel version 3.4.0-g03485a6, Android 4.4.4, Nexus 7 2013 Wi-Fi only.
Is this possible?
Has anyone ever got this to work? I'm searching on a way to have my MAC address changed upon booting the device and keeping it that way. Using ifconfig/busybox just allows you to change the MAC on that "boot session" and reverts back when you disconnect from an AP. I want to change my "stock MAC" from the get-go so that if I disconnect from an AP, it wont go back to the actual one. There is no /persist/wifi dir on my Nexus 7. Anyone who has done this before who can tell me how to do it?
s5 ethernet question
If i were to buy an ethernet adapter would, wired ethernet work with this phone? i cant find anything online about the s5
dhk1267 said:
If i were to buy an ethernet adapter would, wired ethernet work with this phone? i cant find anything online about the s5
Click to expand...
Click to collapse
YES, some USB->LAN adapters made by ASIX (for example ASIX AX88772B) are working if you have a kernel with an ASIX kernel module (for example boeffla kernel + boeffla config v2 app in order to enable the module).
If you can access/ping websites only by internet IP-addresses but not domain-name you need dnsproxy2. I guess this is not needed anymore with a recent boeffla kernel.
Further requirements:
- Android 4.4.4 (Cyanogenmod 11) or lower (CM 12 or 12.1 does not work, see comment below)
- Ethernet-2.XX.apk in order to switch between wlan0 and eth0
- xposed framework for the following xposed modules:
- HACK CONNECTIVITY SERVICE 1.4 or Fake Wifi Connection xposed framework module if you have an app that insists of an wlan0 interface
good luck and success!
COMMENT relating to ethernet incompatibility of CM12 and CM12.1
Until CM11 (Android 4.4.4) I could use my eth0 interface as normal user for everything.
BUT since CM12 I have the following problem:
BUG/missing permissions? eth0 (USB->LAN) interface only usable as root user in terminal since CM12
When I try to ping my router ping 192.168.1.1 or any internet IP I get a android connect network is unreachable.
The only IP-adrress I can ping as normal user is my own IP-adress of the eth0 interface (for expample 192.168.1.XX).
After login as root with the su command in the terminal I can ping the router IP and every internet IP.
Even disabling the iptables filters/firewall did not help.
When I switch to the wlan0 interface I can ping everything with my normal user and the internet connection is available for every app.
Just wanted to bump this thread to see if anyone else knows of a way doing this withOUT going to CM11 or lower?
I'd really like to stay on lollipop.
Alternatively, do we think an AOSP Marshmallow ROM with boeffla's kernel might also do the trick?
Thanks, and cheers.
Following commands in the Terminal Emulator resolved this issue for me. I am using Galaxy S4 with Android 5.0.1 (Lollipop) with BobJGear OTG Ethernet (ASIX AX88772A Chipset). The commands needs to be run every time when switching from Wifi to Ethernet.
Code:
su
netcfg eth0 dhcp
ip rule add from all lookup main pref 99
ndc resolver setnetdns eth0 "" 8.8.8.8 8.8.4.4
exit
Then I can ping to my router and external websites in the Terminal Emulator without using superuser (SU). The Internet also works with LAN on my Smartphone. I do have to enable "Hack Connectivity Service".
Before using above "ip rule" commands, I could only ping using Superuser.
Also previously it was not recognizing website names while pinging. the "ndc resolver" command resolved that issue.
Okay, so I know how to spoof the Wifi mac address with Busybox
Code:
su
Code:
busybox ifconfig wlan0 hw ether xx:xx:xx:xx:xx:xx
I was wondering if you can spoof the Bluetooth Mac Address as well?
Also if anyone knows of a app that can spoof Mac Addresses at bootup so I don't have to manually do so, that would be awesome. I did try "Device Id IMEI Changer Xposed" from the Google Play Store and Xposed Store but had no luck. I do have Xposed installed have have had it working for a while now.
Might be handy to know that I am running Cyanogenmod 12.