mirror of
https://github.com/binaricat/Netcatty.git
synced 2026-11-24 00:50:44 +00:00
Kylin Professional's sudo prompt doesn't include the [sudo] tag and doesn't end with a colon. The existing regex patterns required either [sudo] or a trailing colon, causing the autofill hint to never fire. Changes: - Make trailing colon optional in SUDO_PROMPT_PATTERN and EXPLICIT_SUDO_PROMPT_PATTERN (terminalSudoAutofill.ts) - Update fast path to not skip output containing Chinese password keywords (密码/口令) that lack a colon - Make trailing colon/angle-bracket optional in telnet username and password prompt patterns (telnetAutoLogin.cjs) - Also relax LAST_LOGIN_PATTERN for consistency - Add Kylin-style test cases for both sudo and telnet auto-login