无效的BSSID(AP MAC地址)

2024-09-30 20:18:39 发布

您现在位置:Python中文网/ 问答频道 /正文

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

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')

我需要帮助。谢谢。在


Tags: 命令脚本终端mac地址错误helpng
1条回答
网友
1楼 · 发布于 2024-09-30 20:18:39

如果要运行命令,应使用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运行脚本。在

相关问题 更多 >