加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
preconf.tcl 331 Bytes
一键复制 编辑 原始数据 按行查看 历史
Paul Rock 提交于 2020-06-19 00:34 . Colors was disabled on preconf stage
#!/usr/bin/env expect
set timeout 10
set port [lindex $argv 0]
spawn telnet localhost $port
expect "Login: "
send "admin+etc\n"
expect "Password: "
send "\n"
expect "]:"
send "n\r\n"
expect ">\ "
send "?\r\n"
expect ">\ "
send "\r\n"
expect ">\ "
send "/user set admin password=admin\r\n"
expect ">"
send "quit\r\n"
expect eof
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化