We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 68d238c commit dc165bfCopy full SHA for dc165bf
1 file changed
wifite/tools/macchanger.py
@@ -61,7 +61,7 @@ def reset(cls):
61
Color.pl('\r{+} {C}macchanger{W}: reset mac address back to {C}%s{W} on {C}%s{W}' % (new_mac, iface))
62
63
@classmethod
64
- def random(cls):
+ def random(cls, full_random=True):
65
from ..util.process import Process
66
if not Process.exists('macchanger'):
67
Color.pl('{!} {R}macchanger: {O}not installed')
@@ -72,7 +72,9 @@ def random(cls):
72
73
# -r to use random MAC address
74
# -e to keep vendor bytes the same
75
- if cls.down_macch_up(iface, ['-e']):
+ option = "-r" if full_random else "-e"
76
+
77
+ if cls.down_macch_up(iface, [option]):
78
cls.is_changed = True
79
new_mac = Ip.get_mac(iface)
80
0 commit comments