Search
Project
General
Profile
Sign in
Home
Projects
Search
:
A painter and a black cat
All Projects
A painter and a black cat
Overview
Activity
News
Wiki
Files
Download (707 Bytes)
KippoBrinker
» kippoBrinkerSumida.sh
kippoの多重起動 -
kanata
, 04/13/2025 01:55 PM
#!/bin/bash
# kippoBrinkerSumida ver 0.2
# 2015/11/03 kanata
KIPPO_PORT_LIST
=
"1020 1021 1022 1023 1024 1025"
# ダミーsshdのポートリスト
SSH_VERSION_STRING
=
"SSH-2.0-OpenSSH_6.6.1"
COUNT
=
"1"
for
KIPPO_PORT
in
${
KIPPO_PORT_LIST
}
do
# configファイル生成
sed
-e
"s/ssh_version_string = SSH-2.0-OpenSSH_5.1p1 Debian-5/ssh_version_string =
${
SSH_VERSION_STRING
}
/"
kippo.cfg.dist |sed
-e
"s/ssh_port = 2222/ssh_port =
${
KIPPO_PORT
}
/"
>
kippo.cfg
# 起動
echo
"kippo: dummy sshd port
${
KIPPO_PORT
}
"
COUNT_FORMAT
=
`
printf
%02d
${
COUNT
}
`
rm
-f
kippo_
${
COUNT_FORMAT
}
.pid
twistd
-y
kippo.tac
-l
log/kippo.log
--pidfile
kippo_
${
COUNT_FORMAT
}
.pid
COUNT
=
$((
COUNT
+
1
))
done
exit
0
« Previous
1
…
3
4
5
Next »
(5-5/5)
Loading...