mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-26 05:02:18 +00:00
8012880232
attacks and, most importantly, the entire shell interaction performed by the attacker. WWW: http://code.google.com/p/kippo/
34 lines
754 B
Bash
34 lines
754 B
Bash
#!/bin/sh
|
|
|
|
# $FreeBSD$
|
|
#
|
|
# PROVIDE: kippo
|
|
# REQUIRE: LOGIN
|
|
# KEYWORD: shutdown
|
|
#
|
|
# Add the following lines to /etc/rc.conf to enable kippo:
|
|
#
|
|
# kippo_enable (bool): Set to NO by default.
|
|
# Set it to YES to enable kipppo
|
|
# kippo_logfile (path): Set to /tmp/kippo.log by default.
|
|
# kippo_pidfile (path): Set to /tmp/kippo.pid by default.
|
|
|
|
. /etc/rc.subr
|
|
|
|
name=kippo
|
|
rcvar=kippo_enable
|
|
|
|
load_rc_config $name
|
|
: ${kippo_enable:=no}
|
|
: ${kippo_logfile="/tmp/kippo.log"}
|
|
: ${kippo_pidfile="/tmp/kippo.pid"}
|
|
|
|
kippo_user="kippo"
|
|
kippo_chdir="%%DATADIR%%"
|
|
pidfile=$kippo_pidfile
|
|
command="%%LOCALBASE%%/bin/twistd"
|
|
command_args="-y %%DATADIR%%/kippo.tac --pidfile $pidfile --logfile $kippo_logfile"
|
|
command_interpreter="%%PYTHON%%"
|
|
|
|
run_rc_command "$1"
|