想知道是否有一种方法可以在" n"之后发送SIGHUP来停止airodump。在xterm中运行的秒并捕获其输出(ESSID,NAME)?
Interface=$(airmon-ng | awk '!/Interface/ {print $2}')
xterm -hold -e airodump-ng $Interface &
我尝试使用超时运行xterm,但它没有成功,我也不知道如何获得xterm的输出。
答案 0 :(得分:0)
我刚刚意识到," -hold"导致"超时"不正常。此外,通过添加" -w",airodump-ng会创建一个" .cap文件" ($ myfile)我的输出。
xterm -e timeout --signal=SIGINT 5 airodump-ng $Interface -w $myfile