Python Forum

Full Version: Spoof MAC question
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I inherited a code using the spoof-mac.py from GitHub change the Wi-Fi MAC address.
It works on Windows 7 laptop with both Broadcom or Intel wireless cards. But on Windows 10, it acts weird:
When directly called (as admin) using Python spoof-mac.py set mac-address "Wi-Fi" -- the wifi mac address is changed (checked by "getmac").
When called in the code (the same one works on Windows 7) -- the mac address was not changed, and it pops up the Pycharm window, opens the spoof-mac.py.

There is no difference when using Python 2.7 or 3.7.

What could be the reason?
This issue was resolved.
From the software point of view, the subprocess.call in Python 3 requires a complete path of the spoof-mac.py.
From the hardware point of view, some new Intel wireless card has its mac address hardcoded and can not be modified. You may check https://web.archive.org/web/201505102039...031081.htm for detail.