summaryrefslogtreecommitdiffstats
path: root/app-misc/sshsleeper/sshsleeper-0.1.ebuild
diff options
context:
space:
mode:
authorSuren A. Chilingaryan <csa@suren.me>2019-09-01 00:00:32 +0200
committerSuren A. Chilingaryan <csa@suren.me>2019-09-01 00:00:32 +0200
commitca9627e70852f6b2e835660df870fe3ab405882d (patch)
tree0a008b1d5b16fa0679a195ed7b5662c7891f591c /app-misc/sshsleeper/sshsleeper-0.1.ebuild
downloaddarklin4-ca9627e70852f6b2e835660df870fe3ab405882d.tar.gz
darklin4-ca9627e70852f6b2e835660df870fe3ab405882d.tar.bz2
darklin4-ca9627e70852f6b2e835660df870fe3ab405882d.tar.xz
darklin4-ca9627e70852f6b2e835660df870fe3ab405882d.zip
Initial import
Diffstat (limited to 'app-misc/sshsleeper/sshsleeper-0.1.ebuild')
-rw-r--r--app-misc/sshsleeper/sshsleeper-0.1.ebuild37
1 files changed, 37 insertions, 0 deletions
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"
+}