From 55eb3c69cbd2505851397f3283734318fef9e4d9 Mon Sep 17 00:00:00 2001 From: Simon Arlott Date: Sat, 25 Jul 2020 21:57:15 +0100 Subject: [PATCH] Fix WebSocket auth on AMT 12 Fixes #24 --- amt-redir-ws-0.1.0.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/amt-redir-ws-0.1.0.js b/amt-redir-ws-0.1.0.js index 282782b..5aaca16 100644 --- a/amt-redir-ws-0.1.0.js +++ b/amt-redir-ws-0.1.0.js @@ -107,8 +107,8 @@ var CreateAmtRedirect = function (module, authCookie) { obj.directSend(new Uint8Array([0x13, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00])); // Query for available authentication // ###END###{!Mode-Firmware} // ###BEGIN###{Mode-Firmware} - // When using websocket, we are already authenticated. Send empty basic auth. - obj.directSend(new Uint8Array([0x13, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00])); + // When using websocket, we are already authenticated. Send empty kerberos auth. + obj.directSend(new Uint8Array([0x13, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, 0x00])); // ###END###{Mode-Firmware} cmdsize = (13 + oemlen); break;