Добавил:
Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:

Скрипты / step3_type_realm

.py
Скачиваний:
0
Добавлен:
15.11.2026
Размер:
757 б
Скачать
☆
import subprocess
import time

VBOX = r"C:\Program Files\Oracle\VirtualBox\VBoxManage.exe"
VM = "ЗиВКС"

# Backspace 20 times just in case, or type string directly
# In debconf text entry, text is selected or at end. Let's send Backspace 20 times then type BEA7341.LOCAL
for _ in range(20):
    subprocess.run([VBOX, "controlvm", VM, "keyboardputscancode", "0e", "8e"], check=True)
    time.sleep(0.05)

time.sleep(0.3)
subprocess.run([VBOX, "controlvm", VM, "keyboardputstring", "BEA7341.LOCAL"], check=True)
time.sleep(0.5)

out_file = r"C:\Users\omni\Desktop\tusur\ЗИвКС\LR6\screenshots_real\3_kerberos_config.png"
subprocess.run([VBOX, "controlvm", VM, "screenshotpng", out_file], check=True)
print("SUCCESS: 3_kerberos_config.png captured!")
Соседние файлы в папке Скрипты