yashsingh1/xdaforums huggingface dataset:
[Android Software/Hacking General [Developers Only]] Thargorsson:
And where your mac address is stored? (/efs or /persist)

And which file exactly contains the mac file and in which context (plain Text vor something other like intfmacAddress="yourmacaddress"
[Android Software/Hacking General [Developers Only]] creative21:
i dont have /efs folder but i do have /persist folder in root directory and there are wifi related files and folders. but i cant find "intfmacAddress" line
[Android Software/Hacking General [Developers Only]] Thargorsson:
Did you have a file named "WLAN_mac.bin"?

If so can you send me the content?
[Android Software/Hacking General [Developers Only]] creative21:
i can only find "WCNSS_wlan_dictionary.dat" using solid explorer's search function. but there is a wlan_mac.bin file in "internalstorage/.nMAC" folder , which only contains mac adress.
[Android Software/Hacking General [Developers Only]] Thargorsson:
Is there a file named .maccaddr in /persist/?
[Android Software/Hacking General [Developers Only]] creative21:
no
[Android Software/Hacking General [Developers Only]] Thargorsson:
Or can you send me a ZIP oft your persist folder so thatbi can check all files?
[Android Software/Hacking General [Developers Only]] Thargorsson:
OK i havent found anything useful in the persist folder.

Did the nmac from virbr3 works?

The last Option you could check would be /sys/devices/soc.0/a000000.qcom,wcnss-wlan/wcnss_mac_addr

If everything failes run this Command From a terminal:

"su"

"find / | grep mac"

And then check the output files for a mac address.
[Android Software/Hacking General [Developers Only]] creative21:
the older version from vibr3 works fine, but i wanted the functionality to save mac adresses after reboot so i tried ur version.
[Android Software/Hacking General [Developers Only]] Thargorsson:
And the Command does it gives an output?
[Android Software/Hacking General [Developers Only]] sunkan135:
[MENTION=5568632]Thargorsson[/MENTION] Thank you so much!! Working fine on my device????????

---------- Post added at 05:54 AM ---------- Previous post was at 05:46 AM ----------

Changing MAC seems fine. It randomizes well but there is problem in reverting back to original one by clicking restore . By clicking restore it basically reverts back to the last MAC that we used.
[Android Software/Hacking General [Developers Only]] Thargorsson:
OK i have a Samsung device actually but sadly the mac wont change on it and i dont know why.

Could anyone look if The mac also changes in the settings?
[MENTION=7124995]Pravakardon[/MENTION]

It seems that my function always backups the last assigned mac. Thats Bad :(

Im gonna check my code and hopefully find the fault.

---------- Post added at 09:58 AM ---------- Previous post was at 09:37 AM ----------

OK ive found the fault.

Samsung only reloads there mac address in a reboot.

And my APP checks the mac address stored in /sys which is the actual assigned mac. But this address only reloads itself in a reboot.

Im now adding a reboot Function along with the right backup Method (mine actually wrote nothing into the backup file)

So v. 1.0.8 is coming later this day.
[Android Software/Hacking General [Developers Only]] Thargorsson:
Things that are coming in v. 1.0.8:

Fix Samsung mac addresses not changing (reboot is now required)

Backup the mac file at first start not every startup

Nexus 5 and Yotaphone are back

Issues

Mac address is not reloading at restore button

(Not fixed now (coming v. 1.0.9))
[Android Software/Hacking General [Developers Only]] sunkan135:
I missed something.....

Yeah the revert back to original one didn't work for me it only reverted back to the custom mac that the app first randomized. And I dont know why I cannot change my mac now. When I see settings its the same one that the app randomized for the first time. That means the app at first changed my MAC sucessfully but not again and the changed MAC became my original (default) MAC.

Hope the upcoming version will fix this.???

---------- Post added at 12:45 PM ---------- Previous post was at 12:41 PM ----------

And for the first time it sucessfully changed the MAC without having to reboot!

If the problem gets solved its not a big deal to reboot.
[Android Software/Hacking General [Developers Only]] Thargorsson:
As promised here is v. 1.0.8

Changelog:

Samsung device is now supported again ;) (They need to reboot after mac changing or restore (only way ive found it working on my s3neo))

Added YuYuphoria and Nexus5 (currently there is only the change option available so backup your mac)

Backup works now again

Things to come tomorrow:

Restore of YuYuphoria and Nexus5

Restore mac at startup except for Samsung devices (can anyone tell me how to enable init.d when disabled?)

Maybe a first save list for mac addresses (would be only the list without any functionality)

What i forgot:

Give me a feedback - what is working, what is not, New functions or keep the original layout etc...

Also im gonna try if i can smoother the ui a bit, actually it is a little bit... ya now what i mean.

By the way it could be that Samsung phones still arent working. If so reply and i send you a working APP that isnt working with the other phones. (Only nexus5x and Samsung are supported then)

For all others i will also continue the normal developing.

Have a nice rest-day (in my time zone its 22:09).

Cya.
[Android Software/Hacking General [Developers Only]] Thargorsson:
What did you exactly mean? On my s3neo i always have to reboot? So is the APP working without reboot on some devices? By the way to really check if my APP has changed your mac address, randomize and change it, close the APP and Start it again. It will show the actually assigned mac not the one stored on your device, the one your Router will get. Could you do that? Thanks in advance.
[Android Software/Hacking General [Developers Only]] sunkan135:
I meant that in your previous build , for the first time it changed my MAC to a random one succesfully ( of course the mac that will register in the router) and i didn't reebot at that time. That means somehow it managed to work in my device for the very first time. But it didn't work at all after that.

But thumbs up to your latest build. It works flawlessly!!!!

Cheers!!!
[Android Software/Hacking General [Developers Only]] Thargorsson:
Thanks that i know that that it is working:good:
[Android Software/Hacking General [Developers Only]] Thargorsson:
OK here comes v. 1.0.8.1

Why not 1.0.9?

I have too much trouble with the navigation bar that i want to include.

Also the backup of Macs dont works in cause oft that. The only thing that ive updates was the restore function for the yuphoria and nexus 5
[Android Software/Hacking General [Developers Only]] sunkan135:
I have a query. Cannot we set to MAC as 00:00:00:00:00:00?

I tried it but it was set to some other random.

I think if we set MAC as above mentioned the router will not be able to recognize us and won't send us any packets. Is that the reason the app is programmed in such a way that we cannot assign our ip as 00:00.....?
[Android Software/Hacking General [Developers Only]] Thargorsson:
Hmm I think that 00:00:00:00 etc is not a valid Mac address. I've tried and got the same result. It seems that the kernel looks if the Mac address is valid and then assign it, if not the kernel generates one.

---------- Post added at 05:05 PM ---------- Previous post was at 05:02 PM ----------

OK ive found a device that's incompatible with nMac. The Samsung s3 with android 6.0.1 running ressutection remix is changing the Mac on each reboot do the default.

---------- Post added at 05:07 PM ---------- Previous post was at 05:05 PM ----------

Another thing in addition. Lollipop ROMs are known not to find the backup file at each start so the app creates a new one. PLEASE UPDATE YOUR PHONES TO ANDROID 6.
[Android Software/Hacking General [Developers Only]] Thargorsson:
Ok first im sorry for the late status update.

Second i havent continued the programming (official) ;)

Inofficial ive started implementing a backup function for a maximum of 4 addresses (for now).

Sadly its still in beta state so there is no funtionality just a nice new window.

Additionally ive added a about section to credit myself and virb3 and also after cracking the mac address the founder of the exploit will be mentioned.

Screenshots are coming soon.

By the way i want to publish the app on the play store so tell me what do you think about it.

Cya all later or so

Now bye!
[Android Software/Hacking General [Developers Only]] Thargorsson:
New Version showcase (preview)

Hi guys here are the screenshots and a debug app you can test out.

Note that there is NO FUNCTIONALITY for the debug version.

What is working:

The basic functions like mac changing and randomizing

What is NOT working:

set on boot function

reset function under backups

mac addresses are resetted when you click in bakckups again

Screenshots are below

As before give me a reply (I havent recived any for now...)
[Android Software/Hacking General [Developers Only]] jobhax:
Support for Nexus 6 - shamu would be awesome!

/sys/devices/virtual/net/wlan0/address

Contents: xx:xx:xx:xx:xx:xx
[Android Software/Hacking General [Developers Only]] Thargorsson:
Just to note that all addresses that are stored und er /sys/.../wlan0/address cant be changed

---------- Post added at 08:25 PM ---------- Previous post was at 08:24 PM ----------

So could you look under the /persist folder there should be a file named WLAN_mac.bin its directly in the root oft /persist or /persist/wifi
[Android Software/Hacking General [Developers Only]] jobhax:
/persist/wlan_mac_serial.bin

Contents: xxxxxxxxxxxx
[Android Software/Hacking General [Developers Only]] Thargorsson:
OK im on it

---------- Post added at 09:55 PM ---------- Previous post was at 09:48 PM ----------

Could you test something for me?

Try to edit the mac address (only 2 numbers) and then turn in airplane mode and then off and check if the mac has changed in your settings?
[Android Software/Hacking General [Developers Only]] jobhax:
I did notice on Net Hunter for android for their Mac Changer, it uses root to modify this file /sys/devices/virtual/net/wlan0/address. Which I can confirm that the Mac is changed under WiFi properties and it is different than the contents of /persist/wlan_mac_serial.bin. if were to change wlan_Mac_serial it makes no difference.

Thanks,

Jobhax

---------- Post added at 10:02 PM ---------- Previous post was at 09:59 PM ----------

It did not change
[Android Software/Hacking General [Developers Only]] Thargorsson:
And after a reboot?

---------- Post added at 10:41 AM ---------- Previous post was at 09:48 AM ----------

And when you use Net Hunter and reboot the phone does the mac changes back to the one in /persist?
[Android Software/Hacking General [Developers Only]] Thargorsson:
Version 1.0.9 Release

Changelog:

You can backup up to 4 mac addresses

Added about section

Bug fixes

Whats coming in v.1.1

Set on Boot function (still)

You tell me

As before give me a reply.

Cu all later or so.
[Android Software/Hacking General [Developers Only]] jobhax:
No it doesn't. I don't think the /persist file is even used in this case. It does revert back but not the one in the /persist.
[Android Software/Hacking General [Developers Only]] Thargorsson:
A last thing. Could you change the file under /sys manually and then check your mac address in settings? (Close settings before you change the address)
[Android Software/Hacking General [Developers Only]] Thargorsson:
New Version release! (Just a little)

Changelog:

Added hostname changer

Things that are coming:

Adding model/device/buildID/androidversion changer.

4what???

Most Websites can use and will use this information from your device and send you ads like "your s3 has been infected by a virus" plus that these information are stored and somebody can See which Websites a identically model/device/buildID etc has called.
[Android Software/Hacking General [Developers Only]] Thargorsson:
Sorry here is the apk
[Android Software/Hacking General [Developers Only]] jobhax:
That does not work. I had to change write permissions but it always reverts back to the original mac
[Android Software/Hacking General [Developers Only]] Thargorsson:
Hmm that means that the kali APP use another way then changing the file. Do you habe a wifi folder insode your persist folder? If so is there a .macaddr file vor some other file with your mac? (Remenber to enable to See hidden files)
[Android Software/Hacking General [Developers Only]] jobhax:
The WiFi folder is empty.
[Android Software/Hacking General [Developers Only]] tamanhtp:
Same with me.

On my device, the MAC address file local in directory:

/sys/devices/soc.0/f9864900.sdhci/mmc_host/mmc2/mmc2:0001/mmc2:0001:2/net/wlan0/address

Turn off Wifi, AirPlane mode ON.

Changed permission to -rw-rw-rw

Open address file by ES Note Editor, change the value, save the file (completed). But it's reverted to original MAC immediately.
[Android Software/Hacking General [Developers Only]] Thargorsson:
As I said in the Q&A Mac addresses that are stored under /sys/.../net/wlan0/address aren't supported.

By the way what device did you have?

The first two things that you could check are if a /persist or /efs folder exists and reply to me.
[Android Software/Hacking General [Developers Only]] Thargorsson:
Remember to enable hidden files for that
[Android Software/Hacking General [Developers Only]] Thargorsson:
AMC will be available for free with no ads on Google play this weekend so stay tuned.

EDIT

Ive got a "little" problem with my bank. They didn't get that I wanted to open a new bank account and the next time will be In 2 weeks. Im sorry for that.:(
[Android Software/Hacking General [Developers Only]] tamanhtp:
Sorry for late reply.

I'm own a LG V10. H901. Android 6

The efs is not exist.

The persist don't have special thing.

Have a persist-lg and nothing to . Check attachment for persist and persist-lg.

I using app MacChanger and using method Hard Change, it's worked. But the mac reverted after turn Off and On wifi.

Try another way but not work:

busybox ifconfig wlan0 hw ether xx:xx:xx:xx:xx:xx

ip link set wlan0 address xx:xx:xx:xx:xx:xx

Failed is no exist.

Failed: /system/etc/Firmware/wlan/Prima/WCNSS_qcom_wlan_nv.bin

Failed: /system/bin/macloader

Failed: /system/etc/wifi/

No mac: /data/misc/wifi/config

Empty: /data/tombstones/wcnss

Failed: /data/misc/wifi/WCNSS_qcom_cfg.ini

Failed: /efs/wifi/ .mac.cob

Failed: /sys/devices/soc.0/a000000.qcom,wcnss-wlan/wcnss_mac_addr

Have mac but cannot change: /sys/devices/soc.0/f9864900.sdhci/mmc_host/mmc2/mmc2:0001/mmc2:0001:2

Shorcut: /sys/class/net/wlan0/address

Failed: /net/wlan0/address

Failed: /sys/devices/virtual/net/wlan0/address

Thanks
[Android Software/Hacking General [Developers Only]] Thargorsson:
Thanks ill ckeck it soon
[Android Software/Hacking General [Developers Only]] Thargorsson:
Hey i think ive found the Mac File. I think it's located in /sys/devices/fb000000.qcom,wcnss-wlan/wcnss_mac_addr could you Check that Out ?
[Android Software/Hacking General [Developers Only]] Thargorsson:
For some How there is nothing in both folders that could match a Mac file. That could mean your device is unsupported or the phone gets the Mac directly from its hardware or its stored in a binary file. You could try to contact Vib3R he is developing a universal method but I haven't seen anything in the past month from him so you cannot be sure if it's working.
[Android Software/Hacking General [Developers Only]] tamanhtp:
Haha, i'm follow his thread too. And the lastest comment is yours.

http://xdaforums.com/showpost.php?p=68407440&postcount=42
[Android Software/Hacking General [Developers Only]] Thargorsson:
Oh yes aehm.

Ive talked to him about that yesterday but he wont Release his Universal method until he had finished it. But yaeah I think he will never release it so...
[Android Software/Hacking General [Developers Only]] cuddas:
i'll check it soon haha
[Android Software/Hacking General [Developers Only]] simanicu:
Request device support for Oneplus 3

Device name : OnePlus 3.

Model number : ONEPLUS A3000.

Android Version : 7.0

Running OS: OxygenOS version 4.0.1

First location of MAC file: /persist/wlan_mac.bin

Format - XXXXXXXXXXXX

Example File content:

Intf0MacAddress=12345678abcd

Intf1MacAddress=12345678abcd

Intf3MacAddress=abcd12345678

Intf4MacAddress=abcd12345678

END

Note: The first 2 lines and the last 2 lines match as in the example.

Second location of MAC file: sys/class/net/wlan0/address

Format - XX:XX:XX:XX:XX:XX

Example File content:

12:34:56:78:ab:cd

Tried your app but is not working.

Tried it manually still not working.

Note : For the first location, the value is replaced by the original MAC address every reboot or after going in and out airplane mode.

For the second location cannot change permission to write, so no luck.

Reference: XDA Labs, apps section.

Tried nil MAC Changer a while ago on my Asus zenphone 2 laser running CM 13, and it work great, even thou it wasn't supported. I follow the thread on XDA that led me to your Mac changer app AMC.

If you need anything else, let me know.

Thanks and I'm ready for testing.
[Android Software/Hacking General [Developers Only]] Thargorsson:
Could you try this from terminal after changing your Mac address manually?

chattr +i /persist/wlan_mac.bin

And tell me if it chenges or not.

If wifi isn't working after that so this and reboot:

chattr -i /persist/wlan_mac.bin
[Android Software/Hacking General [Developers Only]] Thargorsson:
And could you check where there is a persist or efs folder on your Zenfone 2, and where's the file located?

Then I'll add it to my app.

BTW I'm actually programming a cross device app that will change you Mac temporary until next reboot so stay tuned.
[Android Software/Hacking General [Developers Only]] simanicu:
I changed a while ago from OOS to RR 7.1.1.

If or when I have time to go back to OOS I'll test it.

So far RR v5.8.2 seems to kinda work. Tested AMC then restore, all working fine at the moment. I restarted the app to see if the changed MAC stayed on, it did but now AMC won't recognize my OnePlus 3, it won't let me restore my previous mac, error " Sorry I found no method that could change your mac address, please contact me to make it work " , so I'm stuck with the random MAC that I got from the app from before restarting. Phone still working OK, flawlessly even if not his own MAC.

If any more testing is needed let me know.

Don't own zenphone2 anymore, sold it.

---------- Post added at 01:44 AM ---------- Previous post was at 01:33 AM ----------

Is working now after restarting again. I think the problem was Magisk , it wouldn't give root access​ to AMC. Now it seems to work properly.
[Android Software/Hacking General [Developers Only]] Thargorsson:
Oh, I haven't tested magdisk with my app so thank you for pointing that out. The last thing does the Mac address change back to the original one when clicking on the refresh button after changing? If not the app works :). BTW did you want a ad-free version?
[Android Software/Hacking General [Developers Only]] thermatk:
[MENTION=5568632]Thargorsson[/MENTION]

You've blocked several countries from play store listing

Can you please point to the source code, so I can build mine myself? Thanks in advance. I can help bring it to f-droid ?
[Android Software/Hacking General [Developers Only]] simanicu:
Is working great now after upgrading RR 7.1.1 to RR 7.1.2.

Magisk won't crash anymore. Some generated random Mac addresses won't let me connect to WiFi. Around 1 out of 3 generated Mac addresses won't connect to WiFi, but most of them they connect.

Refresh button working good, not changing to the original one, is keeping the generated Mac.

Restore button will change to the original Mac but won't show up until refresh is hit.

Since RR ROM is based on latest Lineage OS, I think it should work fine on LineageOS or ROMs based on it, at least on the OnePlus 3.

With or without ads this app is great for me. I travel a lot and it helps getting more then 30 min WiFi in some airports or coffee shops. Thank you!

Realise this app without ads for couple of bucks and I'll buy it. Could put it on XDA Labs or F-Droid as well.

If any more testing is needed let me know.

Thank you!!
[Android Software/Hacking General [Developers Only]] Thargorsson:
Thank you for your support. I'll send you a ad free version of my app via private message, and obviously I cannot release it as paid app in play store due to some rights in my country. But I'll check f-droid. I'm gonna fix the 1 out of 3 bug soon. It's just that some Mac addresses are totally random and no vendor would apply to them. That is causing the router not to recognize the address. I'll also add that only RR is supported on the OnePlus 3.
[Android Software/Hacking General [Developers Only]] geraldalcos:
Is this working on Samsung device? I own an S7E and I haven't tried this yet as I'm quite afraid to mess with my Wi-Fi settings if this didn't work well. Hope someone can confirm. Thanks!
[Android Software/Hacking General [Developers Only]] Thargorsson:
Ain't sure about the newer devices but it should be alright (tested with Samsung Galaxy S3, Galaxy A3, Galaxy Neo, S3 mini). To get really save you should make a EFS backup in recovery first. That's all what you can do because it only changes some parts in there.
[Android Software/Hacking General [Developers Only]] geraldalcos:
ohh so I just have to backup all including EFS (in TWRP) and I will be saved if something goes wrong?
[Android Software/Hacking General [Developers Only]] Thargorsson:
Jep.
[Android Software/Hacking General [Developers Only]] geraldalcos:
Is this the 1.2 version like in the playstore? I cant download the one in PS due to country unavailability.

will try it and revert with update.

Thanks
[Android Software/Hacking General [Developers Only]] Thargorsson:
Nope but here is the one from playstore
[Android Software/Hacking General [Developers Only]] geraldalcos:
Thanks again! will try it.
[Android Software/Hacking General [Developers Only]] geraldalcos:
ok. tried the app but it doesnt changed my mac add. I am getting this error. "failed to changed mac address (io exception).
[Android Software/Hacking General [Developers Only]] Thargorsson:
Ok can you run this from a terminal with root rights?

"find /efs"

"cat /efs/wifi/.mac.info"

"cat /sdcard/.amc/wlan_mac.bin"
[Android Software/Hacking General [Developers Only]] Thargorsson:
BTW which rom did you have?
[Android Software/Hacking General [Developers Only]] geraldalcos:
I am using Custom Superman Rom 2.4.1.
[Android Software/Hacking General [Developers Only]] Thargorsson:
And the output of the commands is?
[Android Software/Hacking General [Developers Only]] geraldalcos:
entering the first one, it shows a lot of lines, then for second and third, it just shows my Mac address. Cant post screenshot tho.
[Android Software/Hacking General [Developers Only]] Thargorsson:
Thanks I'll tell you what to do in about 10 hours or so. :) I'll better gotta get some sleep, its 2 am.
[Android Software/Hacking General [Developers Only]] geraldalcos:
Thanks for the help! :)
[Android Software/Hacking General [Developers Only]] Thargorsson:
Can you run that from a root shell:

"echo 78:0B:6C:7A:62:94 > /efs/.mac.info"

"cat /efs/.mac.info"

And see if the mac changed to that after the echo......
[Android Software/Hacking General [Developers Only]] geraldalcos:
Do I have to do anything in the app(AMC) before entering the above code?
[Android Software/Hacking General [Developers Only]] Thargorsson:
Nope
[Android Software/Hacking General [Developers Only]] geraldalcos:
hero2lte:/ $ su

hero2lte:/ # echo 78:0B:6C:7A:62:94 > /efs/.mac.info

hero2lte:/ # cat /efs/.mac.info

78:0B:6C:7A:62:94

hero2lte:/ #

this is what I get. nothing changes in the settings tho.
[Android Software/Hacking General [Developers Only]] Thargorsson:
Ok cool now do this again and turn on airplane mode before. After disable airplane mode and check Mac in AMC.

It should be changed