Skip to content

feat(macchanger): add --random-mac-vendor flag and improve privacy with --random-mac#438

Merged
kimocoder merged 3 commits into
kimocoder:masterfrom
ahmed-alnassif:master
Feb 26, 2026
Merged

feat(macchanger): add --random-mac-vendor flag and improve privacy with --random-mac#438
kimocoder merged 3 commits into
kimocoder:masterfrom
ahmed-alnassif:master

Conversation

@ahmed-alnassif

Copy link
Copy Markdown

feat(args.py): add --random-mac-vendor to keep vendor bytes and --random-mac for full random mac

refactor(config.py): add random mac logic with conflict handling between flags

feat(macchanger.py): allow user to choose between -e (vendor) and -r (full random) for better privacy

Currently --random-mac uses macchanger -e which keeps vendor bytes (first 3 octets)
This leaks manufacturer information and enables device fingerprinting

Changes:

  • --random-mac now uses -r (full random) for maximum privacy
  • --random-mac-vendor uses -e (keep vendor) for compatibility
  • Graceful handling when both flags are used (falls back to full random)
  • Clear user feedback showing which mode is active

Example:
wifite --random-mac # full random (maximum privacy)
wifite --random-mac-vendor # vendor-preserved (better compatibility)
wifite --random-mac --random-mac-vendor # warns and uses full random

This gives users control over privacy vs compatibility while maintaining
backward compatibility with existing --random-mac usage

@sorryhack sorryhack left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

git clone https://github.com/kimocoder/wifite2.git
cd wifite2
sudo python3 setup.py install
sudo wifite # boom, runs as root

@ahmed-alnassif

Copy link
Copy Markdown
Author
Run sourcery login --token 
Error: Option '--token' requires an argument.
Process completed with exit code 2.

The issue is from the workflow and not the code.


Do I need to do anything before you merge my changes?

@kimocoder kimocoder merged commit e544c81 into kimocoder:master Feb 26, 2026
10 of 11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants