我试图让这段代码在 Ruby Shoes 中工作,但我无法成功杀死名为“airodump”的线程。每次我点击“停止扫描”按钮时,它什么都不做:s
谢谢
button "scan networks" do
airodump = Thread.new do
`sudo airodump-ng --write tuto wlan0`
end
Thread.new do
button "Stop scanning" do
Thread.kill(airodump)
end
end
end