A MAC Address Changer Tool 🖧
This tool allows you to change the MAC address of your network adapter on Windows systems easily.
- Administrator rights on your machine.
- Python 3.x installed with required libraries.
- Familiarity with basic Windows tools like Command Prompt and Registry Editor.
Before running the script, update the following variables in the code or as environment inputs:
Specify the absolute path to the folder containing this project on your system.
The transport name identifies your network adapter in the system. To find it:
- Open Command Prompt.
- Type:
getmac
. - Locate the full transport name in the output and copy it. Paste this value into the script where required.
This defines the registry path for the network adapter.
- Open Registry Editor:
- Press
Win + R
, typeregedit
, and press Enter.
- Press
- Navigate to:
Computer\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control
. - Right-click on the
Class
folder, and search for your network adapter using the transport name from the previous step. - Verify that the
NetworkAddress
entry (REG_SZ) exists and contains your current MAC address. - Copy the full registry path of the relevant adapter and paste it here.
Enter the name (SSID) of your current Wi-Fi network. Alternatively, leave it blank to skip this step.
Identify the name of your active network adapter:
- Open Control Panel.
- Navigate to:
Network and Internet > Network Connections
. - Locate your adapter used for Wi-Fi or Ethernet (e.g.,
Wi-Fi
). - Copy its name and provide it as input.
- The tool retrieves the current MAC address and generates a new random MAC address.
- It disables your network adapter to prepare for MAC address changes.
- The Windows Registry is updated with the new MAC address.
- The tool re-enables the adapter and reconnects to the Wi-Fi network (if specified).
Two log files are maintained in the project directory:
- addresses.txt: Records MAC address changes with timestamps.
- elog.txt: Tracks errors encountered during execution.
- Ensure you have administrative privileges. Without them, the script will fail to modify registry keys or manage network adapters. You can run registryeditor.bat which will run the script as admin.
- The script is tested only on Windows systems and requires dependencies like
winreg
andsubprocess
.
This tool is for educational purposes only. Unauthorized MAC address spoofing may violate the terms of service of your network provider.