websoft9/apps/roles/bt/files/en-password.exp

12 lines
181 B
Plaintext
Raw Normal View History

2022-11-08 08:52:30 +08:00
#!/usr/bin/expect -f
set timeout 30
spawn /usr/bin/bt
expect "command number"
send "5\r"
expect "new password"
2022-11-08 11:07:03 +08:00
send "admin123\r"
2022-11-08 08:52:30 +08:00
#interact
expect eof
catch wait result;