An advanced MAC address ghosting tool that works across Windows, Linux, and macOS.
- Cross-platform support (Windows, Linux, macOS)
- Beautiful terminal UI with animations
- Random MAC address generation from common vendors
- MAC address validation
- Backup and restore original MAC addresses
- Administrative privilege checking
- Colored output and status indicators
- Python 3.7 or higher
- Administrative privileges (sudo/admin)
- Network interface with MAC changing capability
- Git (for installation)
-
Clone the repository:
git clone https://github.com/xtle0o0/phantom-mac.git cd phantom-mac
-
Create and activate virtual environment (recommended):
# Linux/macOS python -m venv env source env/bin/activate # Windows python -m venv env .\env\Scripts\activate
-
Install dependencies:
pip install -r requirements.txt
- Linux/macOS
sudo python phantom_mac.py -i wlan0 -s
- Windows (Run as Administrator)
python phantom_mac.py -i "Wi-Fi" -s
- Linux/macOS
sudo python phantom_mac.py -i wlan0
- Windows (Run as Administrator)
python phantom_mac.py -i "Wi-Fi"
- Linux/macOS
sudo python phantom_mac.py -i wlan0 -m 00:11:22:33:44:55
- Windows (Run as Administrator)
python phantom_mac.py -i "Wi-Fi" -m 00:11:22:33:44:55
- Linux/macOS
sudo python phantom_mac.py -i wlan0 -r
- Windows (Run as Administrator)
python phantom_mac.py -i "Wi-Fi" -r
- Linux:
wlan0
,eth0
,wlp3s0
- macOS:
en0
,en1
- Windows:
"Wi-Fi"
,"Ethernet"
(use quotes if the name contains spaces)
-
Administrative Privileges:
- Always run with sudo (Linux/macOS) or as Administrator (Windows)
- Incorrect usage may require system restart to recover network functionality
-
Network Interruption:
- MAC address changes will temporarily disconnect your network
- Ensure you have an alternative way to restore connectivity if needed
- Some operations may require system restart
-
Hardware Compatibility:
- Not all network interfaces support MAC address changes
- Some devices may revert changes after restart
- Virtual interfaces may have additional restrictions
-
Legal Considerations:
- MAC address spoofing may be restricted in some networks/organizations
- Check your local network policies before use
- Use responsibly and ethically
-
Backup:
- Original MAC addresses are backed up automatically
- Keep note of your original MAC address before making changes
- Some changes may persist after system restart
-
If the network doesn't reconnect:
- Wait 30 seconds for the interface to stabilize
- Try disabling and re-enabling the network interface
- Restart your system as a last resort
-
If changes don't apply:
- Verify administrative privileges
- Check the interface name is correct
- Ensure the interface supports MAC changes
- Try disabling the network manager temporarily
-
If restore fails:
- Use a hardware reset (restart)
- Check the backup file in
src/mac_backup.json
- Use the device manager to reset the network adapter
This project is licensed under the MIT License - see the LICENSE file for details.
Created with ❤️ by LEO
This tool is provided for educational and ethical testing purposes only. Users are responsible for complying with all applicable laws and network policies. The author assumes no liability for misuse or any damages that may occur.