Jump to content


Photo

Need help with changing MAC address for Tethering


  • Please log in to reply
36 replies to this topic

#21 cmh714

cmh714

    Tech Service & Beyond

  • Smod
  • 3,272 posts
  • LocationSoCal
  • Current Device(s):Nexus 6

Posted 12 January 2014 - 12:49 PM

lazy, I just found a hostapd.conf file that looks like the setup for the wap. I dont see a macaddr variable but one may exist that you can google for... assuming you have the file :)

 

It does have the SSID in there



#22 lazy9090

lazy9090

    n00b

  • Members
  • Pip
  • 19 posts

Posted 12 January 2014 - 12:50 PM

May I ask how you're viewing the file? I just rename it as softap.txt and open it with Notepad, but I'm not sure if I'm missing any valuable information.



#23 cmh714

cmh714

    Tech Service & Beyond

  • Smod
  • 3,272 posts
  • LocationSoCal
  • Current Device(s):Nexus 6

Posted 12 January 2014 - 12:51 PM

I just do it on the phone via root explorer. You can choose to view or edit if you want



#24 cmh714

cmh714

    Tech Service & Beyond

  • Smod
  • 3,272 posts
  • LocationSoCal
  • Current Device(s):Nexus 6

Posted 12 January 2014 - 12:52 PM

Other file managers would have the same capability



#25 lazy9090

lazy9090

    n00b

  • Members
  • Pip
  • 19 posts

Posted 12 January 2014 - 01:00 PM

When I open the files in ES Explorer the text is in both Chinese hanji and Arabic. Hoo, this is phone is giving me a hard time on purpose.

 

Again, I appreciate your help, cmh. I'll post again if I think I've got something.



#26 cmh714

cmh714

    Tech Service & Beyond

  • Smod
  • 3,272 posts
  • LocationSoCal
  • Current Device(s):Nexus 6

Posted 12 January 2014 - 01:01 PM

interesting combination of languages. sounds like you should wipe and repave :)



#27 cmh714

cmh714

    Tech Service & Beyond

  • Smod
  • 3,272 posts
  • LocationSoCal
  • Current Device(s):Nexus 6

Posted 12 January 2014 - 01:02 PM

and sure thing on the help seems like it should be relatively easy, but nah.. :)



#28 cmh714

cmh714

    Tech Service & Beyond

  • Smod
  • 3,272 posts
  • LocationSoCal
  • Current Device(s):Nexus 6

Posted 12 January 2014 - 01:14 PM

So in trying to figure this out with you what I just discovered is that the softap.conf file has the SSID and the password. Since its not a password I set, it could be random, or it could be a MAC.....gonna change it and play around more.



#29 lazy9090

lazy9090

    n00b

  • Members
  • Pip
  • 19 posts

Posted 12 January 2014 - 02:45 PM

Keep me posted about your details!

 

I'll be copying the system files onto my desktop and checking nooks and crannies for such MAC configurations later on.



#30 lazy9090

lazy9090

    n00b

  • Members
  • Pip
  • 19 posts

Posted 12 January 2014 - 03:49 PM

I suppose I found some clues to to where these configurations are located.

 

#! /system/bin/sh
 
TARGET_FW_DIR=/data/misc/wifi/firmware
TARGET_FW_FILE=$TARGET_FW_DIR/wl12xx-nvs.bin
TARGET_NVS_FILE=/system/etc/wifi/wlan_fem.ini
 
# Set MAC address from old PDS file to new file
calibrator set upd_nvs $TARGET_NVS_FILE /pds/wifi/nvs_map.bin $TARGET_FW_FILE
 
echo " ******************************"
echo " * Finished Wi-Fi MAC calibration *"
echo " ******************************"


#31 lazy9090

lazy9090

    n00b

  • Members
  • Pip
  • 19 posts

Posted 12 January 2014 - 03:51 PM

According to my post on the previous page, it might be in the file wl12xx-nvs.bin or nvs_map.bin. The problem is, I can't open them with as a .txt file, so they just look like
mT            ™        ùú                            ý 

!#) / 8 D J V d m  ‰ Ÿ ¨ ±                                                                                                                                                                                                                                                                                         ýþþÿÿ                                                                ª   ÿÿ              ÷ïæÞ    ?  ÷ïæÞ        ÷ïæÞ                                                                                                                             w€ "&')%"%%'# $%"PPPPPPPPPPPPPPPPPPPPPPPPPPPP                 -
I don't know what's going on, but I'm thinking the MAC configurations are encrypted in one of those tricky .bin files.

Edited by lazy9090, 12 January 2014 - 04:08 PM.


#32 lazy9090

lazy9090

    n00b

  • Members
  • Pip
  • 19 posts

Posted 12 January 2014 - 04:16 PM

Sweet! FINALLY! Just as I thought, they were in the .bin files!

Strangely, however, the MAC addresses were actually in both .bin files written.

 

I used a hexidecimal editor to view the two files, and they were the same (except for the end of the files, which don't really matter)

 

MACADDRESS_zps4f8e3e77.png

 

My MAC Address is 3C:XX:8E:XX:XX:83. But according to the hex editor, it starts from right to left, with some extra values added between them. 

 

Now, I don't exactly know what to do with this information, but at least I have peace of mind



#33 cmh714

cmh714

    Tech Service & Beyond

  • Smod
  • 3,272 posts
  • LocationSoCal
  • Current Device(s):Nexus 6

Posted 12 January 2014 - 04:44 PM

sounds like it stored little endian style.

 

you can try saving the original and tweaking a new one to see if that works for you 



#34 lazy9090

lazy9090

    n00b

  • Members
  • Pip
  • 19 posts

Posted 12 January 2014 - 05:43 PM

Is that the term used? Sounds like something from Gulliver's Travels!

 

I would try to edit it, but there are values right in the middle of the MAC Address, shown here:

 

MAC Address: 3C XX 8E XX XX 83

What the file says: 3C XX 54 71 01 8E XX XX 83 54 6D 01
 

Since I know nothing hexadecimal or binary related, I'll just pass this information on to the app developer that spoofs MAC addresses.

 

Really, thank you for the help cmh. There's really nothing much to do now, so I'm happy with what I got.



#35 lazy9090

lazy9090

    n00b

  • Members
  • Pip
  • 19 posts

Posted 12 January 2014 - 07:00 PM

Alright! I just replaced the MAC Address value by value for both files. MAC is temporarily changed, but I got it.

 

Ahh, been going at it for days. You don't know the relief of MAC Addresses. Now I can stop procrastinating on homework!


  • cmh714 likes this

#36 lazy9090

lazy9090

    n00b

  • Members
  • Pip
  • 19 posts

Posted 13 January 2014 - 02:40 PM

Just wanted to post a small update; this isn't temporary, the MAC address is permanently changed.

 

However, if you have more than one ROMs in your system, it only changes the MAC Address on the ROM that is currently booted up, meaning you can have multiple MACs on the Droid.



#37 cmh714

cmh714

    Tech Service & Beyond

  • Smod
  • 3,272 posts
  • LocationSoCal
  • Current Device(s):Nexus 6

Posted 13 January 2014 - 08:06 PM

Save the files with different names and macs in each and then use a program like Tasker to enable them and reboot. That way you can stay on the same ROM, if you want






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users