Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ;------------------------------------------------------
- ; @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
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement