/
sxfour
/
python_all_projects
Обзор
Документация
Войти
/
sxfour
/
python_all_projects
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
python_scanner_vnc/main.py
16 строк
456 B
Egor Levashov
Add files via upload
27 апр 2024, 10:03
Не верифицирован
27 апр 2024, 10:03
ae4a281
Код
Авторство
О чём код?
import asyncio, asyncvnc async def run_client(host, port, password): try: async with asyncvnc.connect(host, port, None, password, None) as client: if client: print(client) except ConnectionRefusedError as ex: print('Timeot: ', ex) except PermissionError as ex: print('Password: ', ex) if __name__ == '__main__': asyncio.run(run_client('localhost', '5901', 'teplsos'))