Fix #3444/#4774, get_json_document over JSON.parse

Forgot to update these when I wrote new modules.
bug/bundler_fix
William Vu 2017-11-01 15:05:49 -05:00
parent 5de190f092
commit 0e66ca1dc0
No known key found for this signature in database
GPG Key ID: 68BD00CE25866743
2 changed files with 2 additions and 7 deletions

View File

@ -37,12 +37,7 @@ class MetasploitModule < Msf::Auxiliary
return unless (res && res.code == 200)
begin
json = JSON.parse(res.body)
rescue JSON::ParserError
return
end
json = res.get_json_document
name, ssid = json['name'], json['ssid']
if name && ssid

View File

@ -43,7 +43,7 @@ class MetasploitModule < Msf::Auxiliary
'SortIndex' => -1
)
JSON.parse(res.body).each do |wap|
res.get_json_document.each do |wap|
waps_table << [
wap['bssid'],
wap['signal_level'],