⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 login_testusers.sh

📁 打魔兽战网的都知道他是什么
💻 SH
字号:
#!/bin/sh# tries to login with a massive number of test accounts# See make_testusers.sh for a way to create these accounts.# number of accounts to connect withnumaccts=400# "prefix" of account namesname="bob"# account passwordpass="bob"# delay between printing messagesdelay=30# where to connectserver=localhost# number of zero-padded columns in suffixpadding=6# how many seconds until logouttotal=600num=0while [ "${num}" -lt "${numaccts}" ]; do    num="`expr \"${num}\" '+' '1'`"    form="`printf \"%0${padding}d\" \"${num}\"`"    (        echo ''        echo "${name}${form}"        echo "${pass}"        total=0;        while [ "${total}" -lt "${maxtime}" ]; do            sleep "${delay}"            echo "My name is ${name}${form}"            total="`expr \"${total}\" '+' \"${delay}\"`"        done        echo "/quit"    ) | telnet "${server}" 6112 &doneexit 0

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -