(ruby)%EC%97%90%EC%84%9C%20airodump%20%EB%AA%85%EB%A0%B9%EC%9D%84%20%EC%82%AC%EC%9A%A9%ED%95%98%EB%8A%94%20%EB%B0%A9%EB%B2%95%EC%9D%80%20%EB%AC%B4%EC%97%87%EC%9E%85%EB%8B%88%EA%B9%8C%3F.png)
내 Ruby 스크립트에서 다음 명령을 사용했습니다.
system "gnome-terminal -e bash -c sudo timeout 20 airodump-ng wlp2s0mon -w mt --output-format csv --write-interval 20"
airodump
이 지침을 사용하여 두 번째 터미널을 열어 명령을 실행한 다음 첫 번째 터미널에서 계속 작업하고 싶습니다 .
위 명령이 작동하지 않습니다. 어떻게 해결할 수 있나요?
답변1
그러면 제공된 명령으로 실행된 airodump-ng가 있는 airodump라는 터미널에 새 탭이 열립니다.
#!/bin/bash
gnome-terminal --tab --title="airodump" -- sudo airodump-ng wlan0mon
# or anny other command you want to run with airodump-ng
# airodump-ng -c Channel --bssid -w filename [your wifi card in monitor mode mon ]