ЦЦОшники разослали через uds команду на скачивание и запуск sh-скрипта, который создает в /etc/kf5/xdg/autostart/ файл mos10-12.desktop с авто открытием html странички!
Решение:
От рута (su -) удалить файл /etc/kf5/xdg/autostart/mos10-12.desktop, ну и заодно /etc/mos10-12.html
rm -f /etc/kf5/xdg/autostart/mos10-12.desktop rm -f /etc/mos10-12.html
🖕🖕🏻🖕🏼🖕🏽🖕🏾🖕🏿
PS.: для «красноглазиков» —
Вот такая задача прилетела через UDS («техподдержку от дита»)
echo 'd=$(mktemp -d) && cd $d && echo chr131 > /var/log/uds-system-agent-update.log && wget -a /var/log/uds-system-agent-update.log http://os.mos.ru/files/mos10-12.sh && bash mos10-12.sh &>> /var/log/uds-system-agent-update.log && cd /tmp && rm -rf $d' | at now && sleep 45 && cat /var/log/uds-system-agent-update.log
Команда копирует на машину скрипт и запускает его, делая логи там и все такое… Скрипт создает в каталоге автозапуска файл, в котором и указан запуск html странички, которую так же делает скрипт.
Сам скрипт:
#!/bin/bash
set -xe
cat << 'EOF' > /etc/kf5/xdg/autostart/mos10-12.desktop
[Desktop Entry]
Exec=xdg-open /etc/mos10-12.html
Icon=
Name=xdg-open
Path=
Terminal=False
Type=Application
EOF
chmod 644 /etc/kf5/xdg/autostart/mos10-12.desktop
cat << 'EOF' > /etc/mos10-12.html
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Переход на МОС 12</title>
</head>
<body>
<center>
<svg width="252px" version="1.1" viewBox="0 0 252 198" xmlns="http://www.w3.org/2000/svg">
<defs>
<linearGradient id="paint13_linear_31_2413" x1="400" x2="400" y1="201" y2="367.25" gradientUnits="userSpaceOnUse">
<stop stop-color="#1A1A1A" offset="0"/>
<stop offset="1"/>
</linearGradient>
<clipPath id="clipPath2738">
<rect width="800" height="810" rx="6" fill="#fff"/>
</clipPath>
<linearGradient id="paint14_linear_31_2413" x1="400" x2="400" y1="153.07" y2="360.94" gradientUnits="userSpaceOnUse">
<stop stop-color="#fff" offset="0"/>
<stop stop-color="#fff" stop-opacity=".23529" offset=".034875"/>
<stop stop-color="#fff" stop-opacity=".15686" offset=".96216"/>
<stop stop-color="#fff" stop-opacity=".39216" offset="1"/>
</linearGradient>
<clipPath id="clipPath2730">
<rect width="800" height="810" rx="6" fill="#fff"/>
</clipPath>
<clipPath id="clipPath2722">
<rect width="800" height="810" rx="6" fill="#fff"/>
</clipPath>
<linearGradient id="paint15_linear_31_2413" x1="373.31" x2="373.31" y1="325" y2="345" gradientUnits="userSpaceOnUse">
<stop stop-opacity="0" offset="0"/>
<stop offset=".5"/>
<stop stop-opacity="0" offset="1"/>
</linearGradient>
<clipPath id="clipPath2714">
<rect width="800" height="810" rx="6" fill="#fff"/>
</clipPath>
<radialGradient id="paint16_radial_31_2413" cx="0" cy="0" r="1" gradientTransform="matrix(-15.055 0 0 -9.647 289.61 334.88)" gradientUnits="userSpaceOnUse">
<stop offset="0"/>
<stop stop-opacity="0" offset="1"/>
</radialGradient>
<clipPath id="clipPath2706">
<rect width="800" height="810" rx="6" fill="#fff"/>
</clipPath>
<radialGradient id="paint17_radial_31_2413" cx="0" cy="0" r="1" gradientTransform="matrix(15.055 0 0 9.647 510.39 334.88)" gradientUnits="userSpaceOnUse">
<stop offset="0"/>
<stop stop-opacity="0" offset="1"/>
</radialGradient>
<clipPath id="clipPath2698">
<rect width="800" height="810" rx="6" fill="#fff"/>
</clipPath>
<linearGradient id="paint18_linear_31_2413" x1="396" x2="396" y1="297" y2="337" gradientUnits="userSpaceOnUse">
<stop stop-color="#D4D4D4" offset="0"/>
<stop stop-color="#FAFAFA" offset=".6"/>
<stop stop-color="#D4D4D4" offset=".7"/>
<stop stop-color="#FAFAFA" offset=".8"/>
<stop stop-color="#D4D4D4" offset=".9"/>
<stop stop-color="#ABACAE" offset="1"/>
</linearGradient>
<clipPath id="clipPath2690">
<rect width="800" height="810" rx="6" fill="#fff"/>
</clipPath>
<clipPath id="clipPath2682">
<rect width="800" height="810" rx="6" fill="#fff"/>
</clipPath>
<clipPath id="clipPath2674">
<rect width="800" height="810" rx="6" fill="#fff"/>
</clipPath>
<linearGradient id="paint19_linear_31_2413" x1="367.6" x2="367.6" y1="271.46" y2="165" gradientUnits="userSpaceOnUse">
<stop stop-color="#261E2B" offset="0"/>
<stop stop-color="#352F39" offset="1"/>
</linearGradient>
<clipPath id="clipPath2666">
<rect width="800" height="810" rx="6" fill="#fff"/>
</clipPath>
<clipPath id="clipPath2658">
<rect width="800" height="810" rx="6" fill="#fff"/>
</clipPath>
<clipPath id="clipPath2650">
<rect width="800" height="810" rx="6" fill="#fff"/>
</clipPath>
<linearGradient id="paint20_linear_31_2413" x1="345.52" x2="477.49" y1="141.79" y2="270.75" gradientUnits="userSpaceOnUse">
<stop stop-color="#fff" stop-opacity=".27451" offset="0"/>
<stop stop-color="#fff" stop-opacity="0" offset="1"/>
</linearGradient>
<clipPath id="clipPath2642">
<rect width="800" height="810" rx="6" fill="#fff"/>
</clipPath>
<clipPath id="clipPath2634">
<rect width="800" height="810" rx="6" fill="#fff"/>
</clipPath>
<clipPath id="clipPath2626">
<rect width="800" height="810" rx="6" fill="#fff"/>
</clipPath>
<clipPath id="clipPath2618">
<rect width="800" height="810" rx="6" fill="#fff"/>
</clipPath>
<clipPath id="clipPath2610">
<rect width="800" height="810" rx="6" fill="#fff"/>
</clipPath>
<clipPath id="clipPath2602">
<rect width="800" height="810" rx="6" fill="#fff"/>
</clipPath>
<filter id="filter3_dd_31_2413" x="367" y="205" width="64" height="61.997" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse">
<feFlood flood-opacity="0" result="BackgroundImageFix"/>
<feColorMatrix in="SourceAlpha" result="hardAlpha" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"/>
<feMorphology in="SourceAlpha" radius="1" result="effect1_dropShadow_31_2413"/>
<feOffset dy="3"/>
<feGaussianBlur stdDeviation="3"/>
<feColorMatrix values="0 0 0 0 0.160784 0 0 0 0 0.160784 0 0 0 0 0.25098 0 0 0 0.08 0"/>
<feBlend in2="BackgroundImageFix" result="effect1_dropShadow_31_2413"/>
<feColorMatrix in="SourceAlpha" result="hardAlpha" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"/>
<feOffset dx="1"/>
<feGaussianBlur stdDeviation="2.5"/>
<feColorMatrix values="0 0 0 0 0.160784 0 0 0 0 0.160784 0 0 0 0 0.25098 0 0 0 0.04 0"/>
<feBlend in2="effect1_dropShadow_31_2413" result="effect2_dropShadow_31_2413"/>
<feBlend in="SourceGraphic" in2="effect2_dropShadow_31_2413" result="shape"/>
</filter>
<linearGradient id="paint21_linear_31_2413" x1="420.03" x2="378.28" y1="213.06" y2="261.51" gradientUnits="userSpaceOnUse">
<stop stop-color="#fff" offset=".16667"/>
<stop stop-color="#DFDBFB" offset="1"/>
</linearGradient>
<clipPath id="clipPath2594">
<rect width="800" height="810" rx="6" fill="#fff"/>
</clipPath>
<clipPath id="clipPath2586">
<rect width="800" height="810" rx="6" fill="#fff"/>
</clipPath>
<clipPath id="clipPath2578">
<rect width="800" height="810" rx="6" fill="#fff"/>
</clipPath>
</defs>
<g transform="translate(-77.409 -37.083)">
<path transform="matrix(.99605 0 0 .99748 -195.01 -109.05)" d="m302 147c-6.648 0-12 5.352-12 12v132h220v-132c0-6.648-5.352-12-12-12z" clip-path="url(#clipPath2738)" fill="url(#paint13_linear_31_2413)"/>
<path transform="matrix(.99605 0 0 .99748 -195.01 -109.05)" d="m302 150.72c-4.432 0-8 3.568-8 8v132.28h212v-132.28c0-4.432-3.568-8-8-8z" clip-path="url(#clipPath2730)" opacity=".2" stroke="url(#paint14_linear_31_2413)" stroke-linecap="round" stroke-linejoin="round"/>
<path transform="matrix(.99605 0 0 .99748 -195.01 -109.05)" d="m302 147c-6.648 0-12 5.352-12 12v132h220v-132c0-6.648-5.352-12-12-12z" clip-path="url(#clipPath2722)" opacity=".7" stroke="#000" stroke-linecap="round" stroke-linejoin="round"/>
<path transform="matrix(.99605 0 0 .99748 -195.01 -109.05)" d="m510 325h-220v20h220z" clip-path="url(#clipPath2714)" fill="url(#paint15_linear_31_2413)" opacity=".3"/>
<path transform="matrix(.99605 0 0 .99748 -195.01 -109.05)" d="m290 325v19.999c-6.618 0.04-16-4.481-16-10.001s7.386-9.998 16-9.998z" clip-path="url(#clipPath2706)" fill="url(#paint16_radial_31_2413)" opacity=".3"/>
<path transform="matrix(.99605 0 0 .99748 -195.01 -109.05)" d="m510 325v19.999c6.618 0.04 16-4.481 16-10.001s-7.386-9.998-16-9.998z" clip-path="url(#clipPath2698)" fill="url(#paint17_radial_31_2413)" opacity=".3"/>
<path transform="matrix(.99605 0 0 .99748 -195.01 -109.05)" d="m290 291h220c3.029 6.487 10.656 22.847 16 31.999v4c0 4.432-20 8-42 8h-168.12c-21.879 0-41.879-3.568-41.879-8v-4c5.202-9.4 11.107-22.441 16-31.999z" clip-path="url(#clipPath2690)" fill="url(#paint18_linear_31_2413)"/>
<path transform="matrix(.99605 0 0 .99748 -195.01 -109.05)" d="m274 323h252" clip-path="url(#clipPath2682)" opacity=".3" stroke="#000"/>
<path transform="matrix(.99605 0 0 .99748 -195.01 -109.05)" d="m274 327h252" clip-path="url(#clipPath2674)" stroke="#fff"/>
<path transform="matrix(.99605 0 0 .99748 -195.01 -109.05)" d="m496 165h-192v108h192z" clip-path="url(#clipPath2666)" fill="url(#paint19_linear_31_2413)"/>
<path transform="matrix(.99605 0 0 .99748 -195.01 -109.05)" d="m304 297h192l4 12h-200z" clip-path="url(#clipPath2658)" fill="#333" opacity=".9"/>
<path transform="matrix(.99605 0 0 .99748 -195.01 -109.05)" d="m494 167h-188v104h188z" clip-path="url(#clipPath2650)" opacity=".3" stroke="#000" stroke-linecap="round"/>
<path transform="matrix(.99605 0 0 .99748 -195.01 -109.05)" d="m302 147c-6.648 0-12 5.352-12 12v86.445l220-56.89v-29.555c0-6.648-5.352-12-12-12z" clip-path="url(#clipPath2642)" fill="url(#paint20_linear_31_2413)" opacity=".2"/>
<path transform="matrix(.99605 0 0 .99748 -195.01 -109.05)" d="m290 291h220c3.027 6.481 10.672 22.844 16 31.999v4c0 4.432-20 8-42 8h-168.12c-21.879 0-41.878-3.568-41.878-8v-4c5.201-9.4 11.106-22.441 15.999-31.999z" clip-path="url(#clipPath2634)" opacity=".3" stroke="#000" stroke-linecap="round" stroke-linejoin="round"/>
<path transform="matrix(.99605 0 0 .99748 -195.01 -109.05)" d="m422 325h-44c-1.105 0-2 0.895-2 2s0.895 2 2 2h44c1.105 0 2-0.895 2-2s-0.895-2-2-2z" clip-path="url(#clipPath2626)" opacity=".3"/>
<path transform="matrix(.99605 0 0 .99748 -195.01 -109.05)" d="m422 329h-44c-1.105 0-2 0.895-2 2s0.895 2 2 2h44c1.105 0 2-0.895 2-2s-0.895-2-2-2z" clip-path="url(#clipPath2618)" fill="#fff" opacity=".7"/>
<path transform="matrix(.99605 0 0 .99748 -195.01 -109.05)" d="m376 309h44l4 8h-52z" clip-path="url(#clipPath2610)" fill="#fff"/>
<g transform="matrix(.99605 0 0 .99748 -195.01 -109.05)" clip-path="url(#clipPath2602)" filter="url(#filter3_dd_31_2413)">
<path d="m373.7 210c-0.655-1e-3 -0.983-2e-3 -1.224 0.146-0.135 0.082-0.249 0.195-0.331 0.33-0.148 0.241-0.148 0.569-0.148 1.224v45.597c0 0.655 0 0.982 0.147 1.223 0.083 0.134 0.196 0.247 0.331 0.33 0.24 0.147 0.567 0.147 1.222 0.147h9.306c0.654 0 0.982 0 1.222-0.147 0.135-0.083 0.248-0.196 0.33-0.33 0.148-0.241 0.148-0.568 0.148-1.223v-18.77c0-1.938 0-2.907 0.38-3.207 0.205-0.162 0.465-0.237 0.725-0.209 0.482 0.051 0.999 0.87 2.032 2.509l6.708 10.635c0.2 0.318 0.301 0.477 0.442 0.586 0.08 0.061 0.169 0.11 0.264 0.145 0.167 0.062 0.355 0.062 0.732 0.062h5.022c0.377 0 0.565 0 0.732-0.062 0.095-0.035 0.184-0.084 0.264-0.145 0.141-0.109 0.242-0.268 0.442-0.586l6.708-10.635c1.033-1.639 1.55-2.458 2.032-2.509 0.26-0.028 0.52 0.047 0.725 0.209 0.38 0.3 0.38 1.269 0.38 3.207v18.77c0 0.655 0 0.982 0.148 1.223 0.082 0.134 0.195 0.247 0.33 0.33 0.24 0.147 0.568 0.147 1.222 0.147h9.306c0.655 0 0.982 0 1.223-0.147 0.134-0.083 0.247-0.196 0.33-0.33 0.147-0.241 0.147-0.568 0.147-1.223v-45.597c0-0.655 0-0.983-0.148-1.224-0.082-0.135-0.196-0.248-0.331-0.33-0.241-0.148-0.569-0.147-1.224-0.146l-9.524 0.02c-0.375 1e-3 -0.562 1e-3 -0.729 0.063-0.095 0.035-0.184 0.084-0.263 0.145-0.141 0.108-0.241 0.267-0.442 0.584l-12.402 19.649c-0.526 0.833-0.788 1.25-1.14 1.359-0.194 0.061-0.402 0.061-0.595 0-0.352-0.109-0.615-0.526-1.14-1.359l-12.403-19.649c-0.2-0.317-0.3-0.476-0.441-0.584-0.08-0.061-0.169-0.11-0.263-0.145-0.167-0.062-0.355-0.062-0.73-0.063z" fill="url(#paint21_linear_31_2413)"/>
</g>
<circle transform="matrix(.99605 0 0 .99748 -195.01 -109.05)" cx="441" cy="194" r="16" clip-path="url(#clipPath2594)" fill="#4c6ef5"/>
<path transform="matrix(.99605 0 0 .99748 -195.01 -109.05)" d="m437.52 187.41v13.091h-3.158v-10.138h-0.077l-2.927 1.79v-2.736l3.228-2.007z" clip-path="url(#clipPath2586)" fill="#fff"/>
<path transform="matrix(.99605 0 0 .99748 -195.01 -109.05)" d="m440.41 200.5v-2.276l4.775-4.18c0.358-0.324 0.663-0.62 0.914-0.888 0.252-0.273 0.444-0.546 0.576-0.819 0.132-0.277 0.198-0.577 0.198-0.901 0-0.362-0.079-0.671-0.237-0.927-0.157-0.26-0.375-0.46-0.652-0.601-0.277-0.14-0.594-0.211-0.952-0.211-0.362 0-0.68 0.075-0.952 0.224-0.273 0.145-0.486 0.356-0.64 0.633-0.149 0.277-0.223 0.614-0.223 1.01h-2.998c0-0.891 0.2-1.66 0.601-2.308 0.4-0.647 0.963-1.146 1.687-1.495 0.729-0.354 1.575-0.531 2.538-0.531 0.993 0 1.856 0.166 2.589 0.499 0.732 0.332 1.299 0.797 1.7 1.393 0.405 0.592 0.607 1.281 0.607 2.065 0 0.498-0.1 0.993-0.3 1.483-0.201 0.49-0.561 1.031-1.081 1.623-0.515 0.593-1.248 1.302-2.199 2.129l-1.566 1.444v0.084h5.306v2.55z" clip-path="url(#clipPath2578)" fill="#fff"/>
</g>
</svg>
<h1>Обновитесь на МОС 12</h1>
<p style="width:500px; text-align:left">
Внимание!
</p>
<p style="width:500px; text-align:left">
Уважаемые пользователи, версия МОС 10 на вашем устройстве перестаёт поддерживаться и обновляться. В связи с этим, необходимо перейти на 12 версию МОС. Для этого необходимо обратиться к вашему системному администратору.
</p>
<p style="width:500px; text-align:left">
Преимущества МОС 12:
</p>
<ul style="width:500px; text-align:left">
<li>Улучшена поддержка внешних устройств;</li>
<li>Улучшен интерфейс;</li>
<li>Встроен магазин приложений;</li>
<li>Улучшен пакетный менеджер.</li>
</ul>
<p style="width:500px; text-align:left">
И многое другое, что вы узнаете из презентации при старте работы на МОС 12.
</p>
<p style="width:500px; text-align:left">
С уважением, команда МОС
</p>
</center>
</body>
</html>
EOF
chmod 644 /etc/mos10-12.html
Для памяти — zip архив с данным sh-скриптом: mos10-12.zip
