Land #3468, update for Chromecast wifi spying

bug/bundler_fix
Tod Beardsley 2014-06-23 11:39:08 -05:00
commit ac60696247
No known key found for this signature in database
GPG Key ID: 1EFFB682ADB9F193
1 changed files with 45 additions and 20 deletions

View File

@ -38,6 +38,7 @@ class Metasploit4 < Msf::Auxiliary
'PWR', 'PWR',
'ENC', 'ENC',
'CIPHER', 'CIPHER',
'AUTH',
'ESSID' 'ESSID'
], ],
'SortIndex' => -1 'SortIndex' => -1
@ -47,26 +48,9 @@ class Metasploit4 < Msf::Auxiliary
waps << [ waps << [
wap['bssid'], wap['bssid'],
wap['signal_level'], wap['signal_level'],
case wap['wpa_auth'] enc(wap),
when 1 cipher(wap),
'OPN' auth(wap),
when 5
'WPA'
when 7
'WPA2'
else
wap['wpa_auth']
end,
case wap['wpa_cipher']
when 1
''
when 3
'TKIP'
when 4
'CCMP'
else
wap['wpa_cipher']
end,
wap['ssid'] + (wap['wpa_id'] ? ' (*)' : '') wap['ssid'] + (wap['wpa_id'] ? ' (*)' : '')
] ]
end end
@ -103,4 +87,45 @@ class Metasploit4 < Msf::Auxiliary
end end
end end
def enc(wap)
case wap['wpa_auth']
when 1
'OPN'
when 2
'WEP'
when 5
'WPA'
when 0, 7
'WPA2'
else
wap['wpa_auth']
end
end
def cipher(wap)
case wap['wpa_cipher']
when 1
''
when 2
'WEP'
when 3
'TKIP'
when 4
'CCMP'
else
wap['wpa_cipher']
end
end
def auth(wap)
case wap['wpa_auth']
when 0
'MGT'
when 5, 7
'PSK'
else
''
end
end
end end