Spoof Mac Address? - myTouch 3G, Magic General

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

Related

Device name in WLAN

Hi folks,
can i change the device name of my HTC Hero anyhow, so that in my router's overview it shows the name of it, like it does with laptops / PCs?
I know its possible with bluetooth, but i havent found any option for doing that concerning WLAN.
I didnt root my device, otherwise i would have probably tried the commands which i would use for my Ubuntu laptop:
sudo echo "newname" > /etc/hostname
sudo hostname -F /etc/hostname
and edit /etc/hosts accordingly.
Anyone knows a solution for me?
Best regards,
kapen
Please, anyone?
Or could anyone, who has a rooted Hero, go and take a look whether the files /etc/hostname, /etc/hosts and the command "hostname" exist? Or perhaps even write something in these files, i mean it wont do any harm as you are just writing sth to an ordinary text file.
If i'd have root, i'd do it myself, but for now there are no benefits for me which would push me to root and i don't want to lose my warranty for nothing.
Help is very much appreciated!
most routers let you do this on the router....
I know when i hook up to my thompson router and set a static IP address, it lets me name the device... Hardly worth hacking the device for really.
Bump
I'd like to be able to do this as well, without having to use a static IP. This can be done with symbian, winmobile, java and other types of phone not to mention internet tablets, laptops etc. Why not an Android phone?
rhedgehog said:
most routers let you do this on the router....
Click to expand...
Click to collapse
True. But most routers isnt my router, its not able to do that. And neither do i want to set a static IP on my Hero, because i'm using it with several other WLANs.
fair enough.
I just thought as there is no way that anyone seems to know of on the device, that it may be an alternative.
Ya your right.
I just thought anyone knew a solution for me. I mean its a system running on linux and i ought to be able change that kind of stuff... just don't know how :\
Heureka! It worked just the way i suggested
If you have a rooted device with busybox!, get that handy adb file and do:
Code:
1. adb root
2. adb remount
3. adb shell
3.1 cd /etc
3.2 echo "Hero" >> hostname
3.3 echo "127.0.0.1 Hero localhost.localdomain localhost" > hosts
3.4 echo "127.0.1.1 Hero" >> hosts
3.5 hostname -F /etc/hostname
Voila. Though, you'll get an error when you do "hostname" now, because something in busybox is wrongly linked against a library which doesnt allow resolving hostname by IP, but other devices (such as my router) will now display "Hero" as device name.
Side note: my only intend for doing this was, that my router WAG54G2 (Linksys by Cisco) didnt work correctly with my Hero, meaning i got a lot of connection aborts in WLAN and often could not reconnect afterwards. That seems to be solved now!
Edit:
With the method above, you''ll lose your Wlan name after reboot. You need to add a line to the init startup scripts to perform a "hostname -F /etc/hostname" on every boot. This can be done in the file /init.rc or, if you have the MoDaCo Rom, in /data/init.sh

MAC address question

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.

[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