Advertisement
Guest User

Untitled

a guest
Apr 13th, 2019
159
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.45 KB | None | 0 0
  1. ;------------------------------------------------------
  2. ; @description : telnet for CentOS
  3. ; @auther : n
  4. ; @version : 1.0
  5. ; @since : 2019/4/9
  6. ; @update : 2019/4/9
  7. ;------------------------------------------------------
  8.  
  9. target='192.168.0.1'
  10. username='user'
  11. password='password'
  12.  
  13. ; telnet
  14. strconcat target ':23 /nossh /T=1'
  15. connect target
  16.  
  17. ; login
  18. wait 'login:'
  19. sendln username
  20.  
  21. wait 'Password:'
  22. sendln password
  23.  
  24. ; 5sec pause
  25. pause 5
  26.  
  27. ; logout
  28. sendln 'exit'
  29.  
  30. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement