diff --git a/modules/auxiliary/client/hwbridge/connect.rb b/modules/auxiliary/client/hwbridge/connect.rb index 46f9725301..994b8a2db9 100644 --- a/modules/auxiliary/client/hwbridge/connect.rb +++ b/modules/auxiliary/client/hwbridge/connect.rb @@ -69,12 +69,7 @@ class MetasploitModule < Msf::Auxiliary return end - parsed = nil - begin - parsed = JSON.parse(res.body) - rescue JSON::ParserError - parsed = nil - end + parsed = res.get_json_document if res.code == 200 print_status res.body if datastore['DEBUGJSON'] == true