Назад | Перейти на главную страницу

подключиться к tightVNC в контейнере Windows

В Интернете есть много ресурсов об использовании VNC с контейнером linux, но я не могу найти ни одного для контейнеров Windows, поэтому я подумал, что попробую.

Я могу запустить сервер tightVNC (аутентификация отключена), и в контейнере появятся порты прослушивания 5900 и 5800. Однако, когда клиентское средство просмотра пытается установить соединение, лучшее, что я получаю, это -

Итак, я включил ведение журнала уровня 9 на сервере tightVNC, и вот раздел журнала, в котором начинается входящее соединение.

[ 1808/ 1812] 2019-09-15 09:39:13:181 + Incoming rfb connection from 
192.168.1.220 to port 61860
[ 1808/ 1812] 2019-09-15 09:39:13:181 ! Set socket idle timeout, 0 ms
[ 1808/ 1812] 2019-09-15 09:39:13:181 ! Client #0 connected
[ 1808/ 1472] 2019-09-15 09:39:13:182 - Entering RFB initialization phase 1
[ 1808/ 1472] 2019-09-15 09:39:13:183   RFB initialization phase 1 completed
[ 1808/ 1472] 2019-09-15 09:39:13:183   Shared flag = 0
[ 1808/ 1472] 2019-09-15 09:39:13:183   Initial view-only state = 0
[ 1808/ 1472] 2019-09-15 09:39:13:183   Authenticated with view-only password = 0
[ 1808/ 1472] 2019-09-15 09:39:13:183 - Creating DesktopWinImpl
[ 1808/ 1472] 2019-09-15 09:39:13:184   The Aero is Off
[ 1808/ 1472] 2019-09-15 09:39:13:185   The console desktop has 0 displays
[ 1808/ 1472] 2019-09-15 09:39:13:185 - D3D driver usage is allowed, try to start it...
[ 1808/ 1508] 2019-09-15 09:39:13:186   Creating of D3D11Device
[ 1808/ 1508] 2019-09-15 09:39:13:187   Creating of (0) driverType device
[ 1808/ 1508] 2019-09-15 09:39:13:193   D3D11CreateDevice function was failed with code error = (-2005270524l)
[ 1808/ 1508] 2019-09-15 09:39:13:194 ! Catched Exception in the Win8ScreenDriverImpl::execute() function: D3D11CreateDe
vice function was failed with code error = (-2005270524l). The exception will consider as critical
[ 1808/ 1508] 2019-09-15 09:39:13:194 ! Win8ScreenDriverImpl has an invalid state. The invalid state can be a part of sc
reen propery changes. An update signal will be generated as a screen size changed signal.
[ 1808/ 1508] 2019-09-15 09:39:13:194 - update detected
[ 1808/ 1508] 2019-09-15 09:39:13:194   Destroy Win8DeskDuplicationThreads
[ 1808/ 1472] 2019-09-15 09:39:13:195 ! The Win8 duplication api can't be used: Win8ScreenDriverImpl can't be successful
ly initialized
[ 1808/ 1472] 2019-09-15 09:39:13:195 - Mirror driver usage is allowed, try to start it...
[ 1808/ 1472] 2019-09-15 09:39:13:195 - Searching for Mirage Driver ...
[ 1808/ 1472] 2019-09-15 09:39:13:197 ! The mirror driver factory has failed: Can't find Mirage Driver!
[ 1808/ 1472] 2019-09-15 09:39:13:197 - Using the standart screen driver
[ 1808/ 1472] 2019-09-15 09:39:13:201 - update detected
[ 1808/ 1472] 2019-09-15 09:39:13:201   Prepare to inject the key event: vkCode = 18, release = 1, extended = 0
[ 1808/ 1472] 2019-09-15 09:39:13:201   The modifier states before: m_controlIsPressed = 0; m_menuIsPressed = 0; m_delet
eIsPressed = 0; m_shiftIsPressed = 0; m_winIsPressed = 0;
[ 1808/ 1472] 2019-09-15 09:39:13:201   The modifier states after: m_controlIsPressed = 0; m_menuIsPressed = 0; m_delete
IsPressed = 0; m_shiftIsPressed = 0; m_winIsPressed = 0;
[ 1808/ 1776] 2019-09-15 09:39:13:201 - mouse detector thread id = 1776
[ 1808/ 1776] 2019-09-15 09:39:13:201 - update detected
[ 1808/  372] 2019-09-15 09:39:13:201 - mouse shape detector thread id = 372
[ 1808/  608] 2019-09-15 09:39:13:201 - poller thread id = 608
[ 1808/  608] 2019-09-15 09:39:13:201 - grabbing screen for polling
[ 1808/  608] 2019-09-15 09:39:13:201 - end of grabbing screen for polling
[ 1808/ 1472] 2019-09-15 09:39:13:201 ! exception during DesktopWinImpl creaion: Access is denied (error code 5)
[ 1808/ 1088] 2019-09-15 09:39:13:201 - console poller thread id = 1088
[ 1808/ 1156] 2019-09-15 09:39:13:202 - Hooks update detector thread id = 1156
[ 1808/ 1156] 2019-09-15 09:39:13:202 - Try allow to receive the 0 windows message
[ 1808/ 1156] 2019-09-15 09:39:13:202 - user32.dll successfully loaded.
[ 1808/ 1156] 2019-09-15 09:39:13:202 - The ChangeWindowMessageFilterEx() function successfully found.
[ 1808/ 1156] 2019-09-15 09:39:13:202 ! Can't allow to receive the 0 windows message by the ChangeWindowMessageFilterEx(
) function. (system error: Invalid window handle (error code 1400))
[ 1808/ 1156] 2019-09-15 09:39:13:202 - Hooks update detector has been terminated.
[ 1808/ 1164] 2019-09-15 09:39:13:205 - update detected
[ 1808/ 1472] 2019-09-15 09:39:13:208 ! Error during RFB initialization: Access is denied (error code 5)
[ 1808/ 1472] 2019-09-15 09:39:13:208 ! Connection will be closed: Access is denied (error code 5)
[ 1808/ 1472] 2019-09-15 09:39:13:208 + Connection from 192.168.1.220 has been closed for client #0
[ 1808/ 1792] 2019-09-15 09:39:13:209 + Connection from 192.168.1.220 has been closed for client #0

Я пробовал это на обоих mcr.microsoft.com/windows/servercore:ltsc2019 и mcr.microsoft.com/windows:1903 базовые изображения, и оба создают одно и то же клиентское сообщение и аналогичные журналы.

я пробовал

Но все хаки пока бесплодны.

Я понятия не имею, возможно ли это вообще, но какие-либо предложения / идеи, глядя на журналы VNC, относительно того, что еще можно попробовать / взломать? Предложения о том, почему отказано в доступе к идентификатору инициализации RFB?