Last active
April 10, 2019 13:28
-
-
Save eggist77/168e00d9ae4f0734d7662747afcc3f3b to your computer and use it in GitHub Desktop.
telnet.ttl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;------------------------------------------------------ | |
; @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