You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@guacamole.apache.org by "ciroiriarte (via GitHub)" <gi...@apache.org> on 2026/10/17 18:00:01 UTC

[PR] GUACAMOLE-2343: Add guacclip tool for extracting clipboard contents from session recordings [guacamole-server]

ciroiriarte opened a new pull request, #724:
URL: https://github.com/apache/guacamole-server/pull/724

   Adds `guacclip`, a command-line tool next to `guacenc` and `guaclog` that extracts clipboard contents (text and images) from session recordings made with `recording-include-clipboard`. Neither existing tool surfaces this data today.
   
   ```
   guacclip [-f] [-o OUTDIR] [--direction guest-to-client|client-to-guest]
            [--include image|text|all] [--max-item-bytes N] [--dedup none|skip] FILE...
   ```
   
   Output is `OUTDIR/manifest.json` plus one file per item in `OUTDIR/items/`, recording each item's timestamp, mimetype, size, SHA-256 and direction (where the recording annotates it; otherwise `unknown`).
   
   - Purely additive: no changes to the recording format, libguac or guacd. Links only libguac; built by default, `--disable-guacclip` to opt out.
   - Clipboard streams are reassembled only from stream indices opened by a `clipboard` instruction, so image/file/pipe blobs are never picked up.
   - Recordings are treated as untrusted input (sanitized filenames, size and item-count caps, `O_EXCL|O_NOFOLLOW` + atomic rename for output files).
   - CUnit suite under `src/guacclip/tests`, wired into `make check` (14 tests).
   
   Split out from the SPICE PR #688 as suggested there, since it is protocol-independent.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@guacamole.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org