From b9fee17018cc8a19eeb434b5ae07ca304933018c Mon Sep 17 00:00:00 2001 From: bitstr3m <163704894+bitstr3m-48@users.noreply.github.com> Date: Tue, 24 Mar 2026 18:10:42 -0700 Subject: [PATCH] Update modules/auxiliary/client/hwbridge/connect.rb Co-authored-by: jheysel-r7 --- modules/auxiliary/client/hwbridge/connect.rb | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) 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