MAC address question - Nexus 4 Q&A, Help & Troubleshooting

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.

Related

Spoof Mac Address?

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

How to give access to eth0 to the browser?

After compiling and installing kernel 3.4.39 on SM-P600 (Galaxy note 10.1 2014), I can use my Ethernet over USB dongle, chip AX88772 (Asix).
It works normally, I can download iso files with the wget command on a console.
But, I CAN'T use browser (chrome and internet browser included in Android) to navigate on the internet.
eth0 is configured normally by ifconfig or dhcpcd.
I can see rmn0 and rmn1 also which have 0.0.0.0 address.
How to give access to eth0 to net applications?
I have no firewall installed on my device and the same dongle with the same ifconfig, linked to the same router work normally.
Most probable you will find the reason in http://forum.xda-developers.com/showthread.php?t=2112478
Chopac said:
After compiling and installing kernel 3.4.39 on SM-P600 (Galaxy note 10.1 2014), I can use my Ethernet over USB dongle, chip AX88772 (Asix).
It works normally, I can download iso files with the wget command on a console.
But, I CAN'T use browser (chrome and internet browser included in Android) to navigate on the internet.
eth0 is configured normally by ifconfig or dhcpcd.
I can see rmn0 and rmn1 also which have 0.0.0.0 address.
How to give access to eth0 to net applications?
I have no firewall installed on my device and the same dongle with the same ifconfig, linked to the same router work normally.
Click to expand...
Click to collapse

[Q] MAC Spoofing on SGS5?

Hey guys, I'm trying to set up my phone as a StreetPass relay for my 3DS. I can't seem to change the MAC Address, however.
I'm running a stock SM-G900W8, rooted, SIM Unlocked, with BusyBox installed.
I've tried a handful of MAC Changing/Spoofing apps, and I've tried using the terminal to change it with BusyBox, but I've had zero success. It simply won't change...
Any suggestions or information would be great, thanks!
stickmanmeyhem said:
I've tried a handful of MAC Changing/Spoofing apps, and I've tried using the terminal to change it with BusyBox, but I've had zero success. It simply won't change...
Click to expand...
Click to collapse
Can't change your MAC address with busybox? That is rather unlikely. But you didn't describe what busybox commands you used, what apps you tried, how you checked your MAC address or much else. Making it impossible to tell what went wrong for you. It certainly works on my S5.
Note that the the Android settings menu about device is only reporting the native hardware MAC address. That isn't necessarily what the WAN network actually sees. Discerning your real outward facing MAC address is best done by from your router menu, ethereal, et cetera.
List your interfaces and identify your WAN route, e.g.
Code:
$ su
# busybox ifconfig
Your WAN interface will probably be wlan0. Once you identify the correct interface, note the active MAC address i.e. HWaddr. At this point, it probably agrees with the default settings menu information.
Change your session MAC address
Code:
# busybox ifconfig wlan0 hw ether 00:05:1A:25:55:02
Confirm the change
Code:
# busybox ifconfig wlan0
wlan0 Link encap:Ethernet HWaddr 00:05:1A:25:55:02
Done
.
fffft said:
Can't change your MAC address with busybox? That is rather unlikely. But you didn't describe what busybox commands you used, what apps you tried, how you checked your MAC address or much else. Making it impossible to tell what went wrong for you. It certainly works on my S5.
Note that the the Android settings menu about device is only reporting the native hardware MAC address. That isn't necessarily what the WAN network actually sees. Discerning your real outward facing MAC address is best done by from your router menu, ethereal, et cetera.
List your interfaces and identify your WAN route, e.g.
Code:
$ su
# busybox ifconfig
Your WAN interface will probably be wlan0. Once you identify the correct interface, note the active MAC address i.e. HWaddr. At this point, it probably agrees with the default settings menu information.
Change your session MAC address
Code:
# busybox ifconfig wlan0 hw ether 00:05:1A:25:55:02
Confirm the change
Code:
# busybox ifconfig wlan0
wlan0 Link encap:Ethernet HWaddr 00:05:1A:25:55:02
Done
.
Click to expand...
Click to collapse
Hi, Thank you. Using your method i changed the Mac address, but im unable to Connect my Wifi internet.
Can you guide me how to use my wifi internet in spoofed mac address ?
Mac
how to solve the problem with the change mac
grigaraz said:
how to solve the problem with the change mac
Click to expand...
Click to collapse
Can't used secured with a spoofed mac, no way around it afaik
Sent from my SAMSUNG-SM-G900A using Tapatalk
Mac
on cyanogen 12/13 mac address changes almost without problems, why did not officially change?

Galaxy S5- Will Ethernet Adapter Work?

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.

Spoofing Bluetooth Mac Address on Galaxy S5 (kltedv/G900I)?

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.

Categories

Resources