금요일, 11월 15, 2024
HomeWindowsSecureCRT Login Script

SecureCRT Login Script

SecureCRT Login Script

 

secureCRT001

#$language = "VBScript"
#$interface = "1.0"

Sub main
  Dim host
  host = crt.Arguments(0)
  
  crt.Screen.Synchronous = True

  crt.Screen.WaitForString "~]$"
  crt.Screen.Send "ssh " & host
  crt.Screen.Send VbCr

  crt.Screen.WaitForString " password:"
  crt.Screen.Send "password"
  crt.Screen.Send VbCr
    
  crt.Screen.Synchronous = False
End Sub

 

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Most Popular