This comes back to bite you when you purchase in-flight wifi which is tied to your MAC address. Make sure to disable that option for the in-flight access point!
Simple trick
Submitted 1 year ago by likeaduck@programming.dev to programmer_humor@programming.dev
https://programming.dev/pictrs/image/cfa956f2-15db-40e7-9c8f-b1cfa6b64552.webp
Comments
navi@lemmy.tespia.org 1 year ago
original_ish_name@lemm.ee 1 year ago
Your airport wifi doesn’t ask for your email, phone number, bank number of your life savings, etc?
snake@lemmy.world 1 year ago
Usually it asks for an email, but you can just input a fake one.
FlexibleToast@lemmy.world 1 year ago
It’s me toast@fake.com
WarmSoda@lemm.ee 1 year ago
No. Where are you that it asks you for info?
original_ish_name@lemm.ee 1 year ago
The bank number for life savings was a joke but for some reason they wanted me to verify (I didn’t btw)
MonkCanatella@sh.itjust.works 1 year ago
Didn’t know you could spoof a mac address
Corbin@programming.dev 1 year ago
Most consumer-grade NICs have a default MAC address which is retrievable with device drivers, but delegate (Ethernet) packet assembly to the OS. If the OS asks the NIC to emit a packet, then the NIC often receives the packet as a blob, DMA’d from main memory, and emits the bytes as octets. Other NICs do manage packet assembly, but allow overwriting the default MAC address. By the time I was learning Linux, we had GNU MAC Changer available in userland with the
macchanger
command, and many distros have configuration for randomizing or hardcoding MAC addresses upon boot.I want to say that this is all because olden corporate network management policies could require a technician to replace a NIC without changing the MAC address, but more likely it is because framing and packet assembly was not traditionally handed to a second controller, and was instead bit-banged or MMIO’d by the CPU.
FlexibleToast@lemmy.world 1 year ago
Some devices, like Android, do this automatically. By default they have randomized mac enabled.
kool_newt@lemm.ee 1 year ago
I use this to make MACs for my VMs and virtual NICs. The
00:16:3E
prefix means it’s Xen virtualization, so change this part as needed.#!/usr/bin/python # macgen.py script to generate a MAC address for guests on Xen import random def randomMAC(): mac = [ 0x00, 0x16, 0x3e, random.randint(0x00, 0x7f), random.randint(0x00, 0xff), random.randint(0x00, 0xff) ] return ':'.join(map(lambda x: "%02x" % x, mac)) print (randomMAC())
kspatlas@artemis.camp 1 year ago
GrapheneOS has per connection MAC which can be useful in situations like this
someone_secret@burggit.moe 1 year ago
I don’t think that’s anything new.
My LineageOS phone also has that. I’m inclined to believe that this is available on all newer Android phones
original_ish_name@lemm.ee 1 year ago
I spoofed my MAC once when I went to a router page of a hotel and it said it was logging the request
radix@lemm.ee 1 year ago
In general, I thought IP addresses are mutable while MACs stay the same, and I thought that’s why the outside world uses IPs to identify networks while routers inside a network use MACs to identify specific devices. If you can change your MAC arbitrarily, doesn’t that risk making the router’s job more difficult? Why not just assign yourself a different internal IP?
FiskFisk33@startrek.website 1 year ago
I mean yeah, but in this case you want to make the routers job of shutting you out more difficult.
radix@lemm.ee 1 year ago
Fair point!
ramjambamalam@lemmy.ca 1 year ago
Changing your MAC will make older messages undeliverable, but that just means the connection will be momentarily interrupted until you establish new connections after re-connecting to the WiFi.
Why not just assign yourself a different internal IP? Because a. the router probably wants to assign you one itself via DHCP; and b. the router isn’t looking at your IP address to lock you out; it’s looking at your MAC address.
radix@lemm.ee 1 year ago
I see! Thanks for the explanation! Didn’t put two and two together to realize that the router basically reads MACs and writes IPs.
fneu@discuss.tchncs.de 1 year ago
The router recognizes a device based on its MAC and assigns an IP address. Traditionally, the MAC stays the same, so you’re right. In this case, OP doesn’t want to be recognized by the (airport) router. There is software for spoofing the MAC address for most platforms. Changing the MAC address has recently become more popular due to privacy concerns and on some operating systems it’s supported out of the box.
radix@lemm.ee 1 year ago
That’s pretty cool.
AF1@lemmy.world 1 year ago
I. >!!<**** ****I u
Uu U
Uu Uj
WarmSoda@lemm.ee 1 year ago
Let’s pretend someone didn’t know how to do that on an android. How would you explain it to them?
pineapplelover@lemm.ee 1 year ago
On android when you go to the wifi settings you’re currently connected to there should be a setting for randomizing mac address per connection or per network. If you change it to per connection, once you disconnect and reconnect your mac address should change. On per network, it will randomly generate the mac address for the first connection and keep that address for that wifi forever.
WarmSoda@lemm.ee 1 year ago
Excellent explanation, thank you. Never knew what that difference was.
kspatlas@artemis.camp 1 year ago
I think per connection is a GrapheneOS thing unless I'm wrong
Steeve@lemmy.ca 1 year ago
Just google it you dumb piece of shit - Stack overflow user
Marked as duplicate
bappity@lemmy.world 1 year ago
I know you wanted this solution but that solution is shit here’s my one instead
FooBarrington@lemmy.world 1 year ago
Most Android phones have an option to randomize MAC per WiFi, enabled by default. Maybe you can trigger a new MAC by forgetting the network and reconnecting?
SuperIce@lemmy.world 1 year ago
If you enable Developer Options, there is a setting under Networking called “Wi-Fi non-persistent MAC randomization” that randomizes the MAC per connection for networks that have randomization enabled.
notthebees@reddthat.com 1 year ago
There was a way to do it on older Android phones with a specific Mac address changer but it broke after android 6 got released.