From 6c708d8254103594b0435663eb73f3b0dba2b2e3 Mon Sep 17 00:00:00 2001 From: Matt McClaskey Date: Tue, 5 Apr 2022 08:56:54 -0400 Subject: [PATCH] Feature/kasm 2445 clipboard ids (#28) Adds IDs to clipboard operations for use in DLP, logging, and general attribution. --- core/rfb.js | 10 ++- vnc_lite.html | 182 -------------------------------------------------- 2 files changed, 7 insertions(+), 185 deletions(-) delete mode 100644 vnc_lite.html diff --git a/core/rfb.js b/core/rfb.js index c71b0a68..41e8c4ce 100644 --- a/core/rfb.js +++ b/core/rfb.js @@ -2497,6 +2497,10 @@ export default class RFB extends EventTargetMixin { for (let i = 0; i < num; i++) { + if (this._sock.rQwait("Binary Clipboard op id", 4, buffByteLen)) { return false; } + buffByteLen += 4; + let clipid = this._sock.rQshift32(); + if (this._sock.rQwait("Binary Clipboard mimelen", 1, buffByteLen)) { return false; } buffByteLen++; let mimelen = this._sock.rQshift8(); @@ -2537,10 +2541,10 @@ export default class RFB extends EventTargetMixin { ); } - if (!this.clipboardBinary) { continue; } + Log.Info("Processed binary clipboard (ID: " + clipid + ") of MIME " + mime + " of length " + len); + + if (!this.clipboardBinary) { continue; } - Log.Info("Processed binary clipboard of MIME " + mime + " of length " + len); - clipItemData[mime] = new Blob([data], { type: mime }); break; default: diff --git a/vnc_lite.html b/vnc_lite.html deleted file mode 100644 index 422ffd5a..00000000 --- a/vnc_lite.html +++ /dev/null @@ -1,182 +0,0 @@ - - - - - - KasmVNC - - - - - - - - - -
-
Loading
-
Send CtrlAltDel
-
-
- -
- -