Advertisement
Sephinroth

expect scripts

Oct 12th, 2023 (edited)
1,663
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. spawn ftp ftp@10.0.18.87
  4. expect "Password: "
  5. send "ftp\n"
  6. interact
  7.  
  8.  
  9. #!/usr/bin/expect
  10.  
  11. spawn telnet 10.0.18.87
  12. expect "ogin: "
  13. send "ftp\n"
  14. expect "assword: "
  15. send "ftp\n"
  16. interact
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement