我試着讓這段代碼在Ruby Shoes中有效,但我無法成功地殺死名爲「airodump」的線程。每次我點擊「停止掃描」按鈕,它不會做任何事情:■在Ruby Shoes中殺死線程似乎不起作用?
感謝
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