Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Spoof MAC question
#1
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?
Reply
#2
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.
Reply


Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020