Skip to content

Commit 6105b99

Browse files
committed
Fixed response parsing
1 parent 16541d9 commit 6105b99

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

modules/exploits/osx/http/remote_for_mac_rce.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -96,11 +96,11 @@ def exploit
9696
}
9797
)
9898

99+
print_status('Payload sent')
99100
if res&.code == 200
100101
print_good('Payload delivered successfully. Awaiting session...')
101-
else
102-
fail_with(Failure::UnexpectedReply, "Unexpected HTTP response: #{res&.code || 'no response'
103-
}")
102+
res_json = res.get_json_document
103+
print_status("Received response: #{res_json['result']}")
104104
end
105105
end
106106
end

0 commit comments

Comments
 (0)