Skip to content

Instantly share code, notes, and snippets.

@eggist77
Last active April 10, 2019 13:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save eggist77/168e00d9ae4f0734d7662747afcc3f3b to your computer and use it in GitHub Desktop.
Save eggist77/168e00d9ae4f0734d7662747afcc3f3b to your computer and use it in GitHub Desktop.
telnet.ttl
;------------------------------------------------------
; @description : telnet for CentOS
; @auther : n
; @version : 1.0
; @since : 2019/4/9
; @update : 2019/4/9
;------------------------------------------------------
target='192.168.0.1'
username='user'
password='password'
; telnet
strconcat target ':23 /nossh /T=1'
connect target
; login
wait 'login:'
sendln username
wait 'Password:'
sendln password
; 5sec pause
pause 5
; logout
sendln 'exit'
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment