Advertisement
Sephinroth

expect scripts

Oct 12th, 2023 (edited)
2,089
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
TCL 0.21 KB | None | 0 0
  1. #!/usr/bin/expect
  2.  
  3. expect "Password: "
  4. send "ftp\n"
  5. interact
  6.  
  7.  
  8. #!/usr/bin/expect
  9.  
  10. spawn telnet 10.0.18.87
  11. expect "ogin: "
  12. send "ftp\n"
  13. expect "assword: "
  14. send "ftp\n"
  15. interact
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement