Re:Milan Airport WiFi sends your MAC address to advertisers ...
by jolmg on Wednesday November 06, 2019 @11:24AM
(#21464069)
You need to indent the code by at least 2 spaces so it doesn't collapse into a paragraph like that. Also, that script isn't really portable. Not everyone has those interface names nor /etc/init.d/networking.
Re:Milan Airport WiFi sends your MAC address to advertisers ...
by jayalpha on Wednesday November 06, 2019 @11:34AM
(#21464166)
It is gypsy code and works for me. Use macchanger instead of adopt the script for your purposes.
Re:Milan Airport WiFi sends your MAC address to advertisers ...
by jolmg on Wednesday November 06, 2019 @11:53AM
(#21464358)
What is "gypsy code"? I first thought you were referring to a library or some kind of platform, but that doesn't seem to be it. The only definition I find of gypsy is that of the people. Maybe you're saying that it was written by a Gypsy, but I don't know why that'd be of interest.
Re:Milan Airport WiFi sends your MAC address to advertisers ...
by jayalpha on Wednesday November 06, 2019 @12:33PM
(#21464796)
It meant a quick and dirty fix.
Re:Milan Airport WiFi sends your MAC address to advertisers ...
by chupasaurus on Wednesday November 06, 2019 @06:17PM
(#21468648)
ifconfig is a part of net-tools package, last release of which was in 2001 hence it's deprecated in any major distro since 2013. Unless you're running RHEL6 or something that old, you shouldn't use it.
Also extends time limites wifi.
Or use my gypsy code
import random
import os
mac=''
os.system('/etc/init.d/networking stop')
os.system('ifconfig wlan1 down')
os.system('ifconfig eth1 down')
os.system('ifconfig wlp8s0 down')
os.system('ifconfig wlp7s0 down')
for i in range(0,3):
__r=random.randint(16, 256)
__mac=mac+":"+str(hex(r))[2:]
mac="00:07:E9"+mac
print mac
os.system('/etc/init.d/networking stop')
os.system('ifconfig wlan1 hw ether '+mac)
os.system('ifconfig wlp8s0 hw ether '+mac)
os.system('ifconfig wlp7s0 hw ether '+mac)
os.system('ifconfig eth1 hw ether '+mac)
os.system('ifconfig wlan1 up')
os.system('ifconfig eth1 up')
os.system('ifconfig wlp8s0 up')
os.system('ifconfig wlp7s0 up')
os.system('/etc/init.d/networking start')
os.system('ifconfig')
print "echo 'MAC changed..."
print "new random MAC "+mac