From 4e6aa460aa6b861b71bf57f2ea193d2a34e0b8be Mon Sep 17 00:00:00 2001 From: DonislawDev Date: Fri, 25 Sep 2026 09:39:48 +0200 Subject: [PATCH 1/2] fix(mech): start a batch script through the command interpreter Windows starts the command interpreter for a .bat or .cmd target by itself, as `cmd.exe /c `, with no quotes around the line. The interpreter keeps the quotes of a line only when it holds exactly one pair with no special character, and otherwise strips the first quote and the last one. Measured with a script that writes down what it received: - An argument with a space, or a script in a folder with `&` in its name: the script never started, and the session reported a target that vanished right after injection. - An empty argument disappeared and moved the others up one place. - `a&b` gave the script `a` and ran `b` as a separate command. Both launches now start `\cmd.exe /e:ON /v:OFF /c ""