3 ms·
MAC address can be easily changed, with ifconfig(8). Nearly every Unix has an ioctl(2) request for this. So does NT. But on mobile you might need a "rooted" de
by mahmud 11y ago
MAC address can be easily changed, with ifconfig(8). Nearly every Unix has an ioctl(2) request for this. So does NT.
But on mobile you might need a "rooted" device.
I have the following script in my OS X toolbox to allow me to connect to public WiFis for longer than allowed time.
#!/bin/bash
sudo ifconfig en1 ether `openssl rand -hex 6 | sed 's/\(..\)/\1:/g; s/.$//'`
- personjerry 11y agoIIRC this isn't "changing" the MAC address, as a reset of the software will once again begin broadcasting the original. Rather, it is spoofing, i.e. forcing the software to lie about the MAC address that was built into the hardware.
- mahmud 11y agoYes, but it's not a constant, but more of a configurable option; change can be made trivially, and as often as needed. Unix init scripts for networking can do MAC changes for you every time an interface goes up.