Skip to content

Latest commit

 

History

History
33 lines (32 loc) · 1.57 KB

KiTT.en.md

File metadata and controls

33 lines (32 loc) · 1.57 KB

KiTTY have -loginscript option
For call KiTTY from KeePass with -loginscript use url like:

telne|tl|seria|ss|rs://serverIP/LoginScriptFile?other options for KiTTY

ex:

telne://10.30.15.133/tMeSuSy

where in file KeePass\..\KiTTY\loginscript\tMeSuSy

me:
{REF:U@T:tacacs}
rd:
{REF:P@T:tacacs}
>
su
rd:
{REF:P@U:apteka}
>
sy

If path to portable_kitty.exe is KeePass\..\KiTTY\portable_kitty.exe

##How it work:

  • replace any / of {URL:PATH} with {ENV_DIRSEP}: {T-REPLACE-RX:|{URL:PATH}|/|{ENV_DIRSEP}|}
  • get login script: {CMD:`findstr.exe x* {APPDIR}{ENV_DIRSEP}..{ENV_DIRSEP}kiTTY{ENV_DIRSEP}loginscript{T-REPLACE-RX:|{URL:PATH}|/|{ENV_DIRSEP}|}`M=C,WS=H`}
  • encode login script to base64 string for pass to bat file as argument: "{T-CONV:<{CMD:`findstr.exe x* {APPDIR}{ENV_DIRSEP}..{ENV_DIRSEP}kiTTY{ENV_DIRSEP}loginscript{T-REPLACE-RX:|{URL:PATH}|/|{ENV_DIRSEP}|}`M=C,WS=H`}<base64<}"
  • replace first ? of query with empty string: {T-REPLACE-RX:|{URL:QUERY}|^\?||}
  • decode uri to command line for KiTTY: {T-CONV:`{T-REPLACE-RX:|{URL:QUERY}|^\?||}`Uri-Dec`}