From ca9627e70852f6b2e835660df870fe3ab405882d Mon Sep 17 00:00:00 2001 From: "Suren A. Chilingaryan" Date: Sun, 1 Sep 2019 00:00:32 +0200 Subject: Initial import --- app-misc/sshsleeper/sshsleeper-0.1.ebuild | 37 +++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 app-misc/sshsleeper/sshsleeper-0.1.ebuild (limited to 'app-misc/sshsleeper/sshsleeper-0.1.ebuild') diff --git a/app-misc/sshsleeper/sshsleeper-0.1.ebuild b/app-misc/sshsleeper/sshsleeper-0.1.ebuild new file mode 100644 index 0000000..ca464ab --- /dev/null +++ b/app-misc/sshsleeper/sshsleeper-0.1.ebuild @@ -0,0 +1,37 @@ +# Copyright 1999-2008 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: + +inherit eutils toolchain-funcs flag-o-matic + +DESCRIPTION="just a sleep app to be used for ssh backdoors" +HOMEPAGE="http://dside.dyndns.org/" + +LICENSE="GPL" +SLOT="0" +KEYWORDS="x86 amd64" + + + +src_compile() { + gcc -o ${PN} "${FILESDIR}"/${PN}.c +} + +src_install() { + dobin ${PN} + + dodir /etc + echo "duration 14400" > "${D}"/etc/sshsleeper.conf + + dodir /var/lib/sshsleeper + dodir /var/lib/sshsleeper/.ssh +} + +pkg_postinst() { + enewuser sleep 601 /usr/bin/sshsleeper /var/lib/sshsleeper nogroup -K PASS_MAX_DAYS=31 + fowners sleep.nogroup /var/lib/sshsleeper + fowners sleep.nogroup /var/lib/sshsleeper/.ssh + + einfo "" + einfo "Please, add sshsleaper to /etc/shells" +} -- cgit v1.2.3