Re: [Tails-dev] Randomize full MAC address feature option in welcome screen

2023-12-10 Thread Ethan Krasner via Tails-dev
>phone oui vendors resources to form oui list:

It would make more sense for full mac randomization to copy how android does it 
wouldn't it?

https://source.android.com/docs/core/connect/wifi-mac-randomization-behavior

>The MAC randomization feature randomizes the address by setting the locally 
>administered bit to 1, and the unicast bit to 0. The other 46 bits are 
>randomized.

https://en.wikipedia.org/wiki/File:MAC-48_Address.svg

So to implement that like the Android feature does:

0X:00:00:00:00:00

^

X would have to be 26ae

reasoning is XX:00:00:00:00:00 would have to equal an 8 digit binary ending in 
10

xx10

^ determines the locally administered bit which has to be 1

^ determines the unicast which has to be 0

https://richardatkin.com/post/2022/01/14/MAC-Address-Randomisation.html

If you use this calculator u can see that 26ae are the only possible outcomes 
for this bit to end in 10

0X:00:00:00:00:00

^ the first part can equal anything between 0-9 and a-f as it doesn’t change 
the binary ending in 10

X = 2 or 6 or a or e [26ae]

https://www.compscilib.com/calculate/mac-address-to-binary?

The first part could be anything [0-9a-f] but the the second part would have to 
be [26ae] then the rest (10) randomized.

[0-9a-f][26ae]:00:00:00:00:00

echo $(/usr/bin/tr -dc a-f0-9 https://proton.me/) secure email.___
Tails-dev mailing list
Tails-dev@boum.org
https://www.autistici.org/mailman/listinfo/tails-dev
To unsubscribe from this list, send an empty email to 
tails-dev-unsubscr...@boum.org.


[Tails-dev] Randomize full MAC address feature option in welcome screen

2023-11-20 Thread Astral Projection
Feature for full mac randomization in the welcome screen users can 
select if they choose so (not set as the default spoofing option.)


Something like these lines added to /usr/local/lib/tails-spoof-mac

oui=list of phone oui venders
nic=/usr/bin/tr -dc a-f0-9 's/../:&/2g'

spoof_full_mac() {
local msg
set +e
msg="$(macchanger -m "$oui:nic" 2>&1)"
ret="${?}"
set -e
if [ "${ret}" != 0 ]; then
log "macchanger failed for NIC ${1}, returned ${ret} and said: 
${msg}"

return 1
fi
}

macchanger command for this feature would be

macchanger -m "$oui:nic"

phone oui vendors resources to form oui list:
https://standards.ieee.org/products-programs/regauth/
https://www.wireshark.org/download/automated/data/manuf

(look for these type of vendors)

Google

Huawei

Apple, Inc.

Samsung Electronics Co.,Ltd
___
Tails-dev mailing list
Tails-dev@boum.org
https://www.autistici.org/mailman/listinfo/tails-dev
To unsubscribe from this list, send an empty email to 
tails-dev-unsubscr...@boum.org.