Shell command и CLI command: в чём разница и почему она важна
Спойлер: для многих переведенных мною авторов разницы нет.
Вот примеры из текущей книги:
Command injection is similar, except user input is able to execute arbitrary CLI commands on the system.
You can use several techniques to defend against these exploits... e.g. using allowlist shell commands or prompts or sandboxing the environment in which shell commands are executed.
Both of these vulnerabilities can be relevant to MCP servers, especially if your server is used to access a database or execute CLI commands.
Если не сильно заморачиваться, то в целом речь идёт о некоем чёрном окошечке, в котором моргает курсор и куда можно вбивать команды.
А вот если все же вникнуть, то разница есть. Будем разбираться.
Для начала надо понять, что такое shell.
Продолжение на https://teletype.in/@bartov/rxCyNkKrKvG?utm_source=teletype&utm_medium=feed_rss&utm_campaign=bartov
Просмотры: 19