subprocess module call
Medium
- Category
- Dangerous Code Execution
- Content
claude_parts += args.extra launch = f"cd {shlex.quote(cwd)} && " + " ".join(shlex.quote(p) for p in claude_parts) subprocess.check_call(tmux_cmd(socket_path, "send-keys", "-t", target, "-l", "--", launch)) subprocess.check_call(tmux_cmd(socket_path, "send-keys", "-t", target, "Enter")) # Workspace trust prompt (first run in a new folder).- Confidence
- 96% confidence
- Finding
- subprocess.check_call(tmux_cmd(socket_path, "send-keys", "-t", target, "-l", "--", launch))
