root@kali:~/PycharmProjects/mac_changer# ls
mac_changer.py set_monitor_mode.py venv
root@kali:~/PycharmProjects/mac_changer# python set_monitor_mode.py
Usage: set_monitor_mode.py [options]
set_monitor_mode.py: error: [-] Please specify an interface, use –help for info
root@kali:~/PycharmProjects/mac_changer# python set_monitor_mode.py -i wlan0
Setting wlan0 to monitor mode
Traceback (most recent call last):
File “set_monitor_mode.py”, line 20, in <module>
monitor_mode(options.interface)
File “set_monitor_mode.py”, line 14, in monitor_mode
subprocess.call(“ifconfig”, interface, “down”)
File “/usr/lib/python2.7/subprocess.py”, line 172, in call
return Popen(*popenargs, **kwargs).wait()
File “/usr/lib/python2.7/subprocess.py”, line 343, in __init__
raise TypeError(“bufsize must be an integer”)
TypeError: bufsize must be an integer