Skip to content

Commit dc165bf

Browse files
feat(macchanger.py): the user can now choose between -e/-r for better privacy
1 parent 68d238c commit dc165bf

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

wifite/tools/macchanger.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ def reset(cls):
6161
Color.pl('\r{+} {C}macchanger{W}: reset mac address back to {C}%s{W} on {C}%s{W}' % (new_mac, iface))
6262

6363
@classmethod
64-
def random(cls):
64+
def random(cls, full_random=True):
6565
from ..util.process import Process
6666
if not Process.exists('macchanger'):
6767
Color.pl('{!} {R}macchanger: {O}not installed')
@@ -72,7 +72,9 @@ def random(cls):
7272

7373
# -r to use random MAC address
7474
# -e to keep vendor bytes the same
75-
if cls.down_macch_up(iface, ['-e']):
75+
option = "-r" if full_random else "-e"
76+
77+
if cls.down_macch_up(iface, [option]):
7678
cls.is_changed = True
7779
new_mac = Ip.get_mac(iface)
7880

0 commit comments

Comments
 (0)