简体   繁体   English

wifijammer.py问题MacOSx

[英]wifijammer.py issue MacOSx

I'm trying to test out https://github.com/DanMcInerney/wifijammer but i get this error 我正在尝试测试https://github.com/DanMcInerney/wifijammer但我收到此错误

Traceback (most recent call last):
  File "wifijammer.py", line 371, in <module>
    mon_iface = get_mon_iface(args)
  File "wifijammer.py", line 52, in get_mon_iface
    monitors, interfaces = iwconfig()
  File "wifijammer.py", line 69, in iwconfig
    proc = Popen(['iwconfig'], stdout=PIPE, stderr=DN)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 711, in __init__
    errread, errwrite)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 1308, in _execute_child
    raise child_exception
OSError: [Errno 2] No such file or directory

I realize that it maybe because MacOSX does not have iwconfig.....but if that is indeed the issue is there any work around? 我意识到这可能是因为MacOSX没有iwconfig .....但是,如果确实存在问题,是否可以解决? Any source modification I can make so that this error doesn't occur? 我可以进行任何源修改,以便不会发生此错误?

wifijammer.py seems to have only designed to work on Linux. wifijammer.py似乎只能在Linux上运行。

It may be able to modified to run on OSX, but there's some specific things that have to change. 它可能可以进行修改以在OSX上运行,但是有些特定的东西需要更改。 It seems to be requiring the command line iwconfig tool to be installed, which it uses to determine the interface name of your wireless card. 似乎需要安装命令行iwconfig工具,该工具用于确定无线网卡的接口名称。

Report the issue to their issue tracker , or modify the script yourself to use airport -I , or ifconfig instead. 向他们的问题跟踪器报告问题 ,或者自己修改脚本以使用airport -Iifconfig代替。 Lastly, you could just hackishly change the function to use en1 (which is generally the wifi card on most macs). 最后,您可以随意更改功能以使用en1 (通常是大多数macs上的wifi卡)。 YMMV. 因人而异。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM