From 619fd73a904fd58e0640419acdf82df6b0206d56 Mon Sep 17 00:00:00 2001 From: Yuri Victorovich Date: Mon, 8 Apr 2019 07:07:42 +0000 Subject: [PATCH] New port: security/cowrie: Cowrie SSH/Telnet honeypot --- security/Makefile | 1 + security/cowrie/Makefile | 36 ++++++++++++++++++++++++++++++++++++ security/cowrie/distinfo | 3 +++ security/cowrie/pkg-descr | 4 ++++ 4 files changed, 44 insertions(+) create mode 100644 security/cowrie/Makefile create mode 100644 security/cowrie/distinfo create mode 100644 security/cowrie/pkg-descr diff --git a/security/Makefile b/security/Makefile index 15f9c828f971..e5ec0774f755 100644 --- a/security/Makefile +++ b/security/Makefile @@ -99,6 +99,7 @@ PORTREVISION= 1 SUBDIR += courierpassd SUBDIR += courierpasswd SUBDIR += courieruserinfo + SUBDIR += cowrie SUBDIR += cp2fwb SUBDIR += cracklib SUBDIR += crackpkcs12 diff --git a/security/cowrie/Makefile b/security/cowrie/Makefile new file mode 100644 index 000000000000..5d9726a80f3e --- /dev/null +++ b/security/cowrie/Makefile @@ -0,0 +1,36 @@ +# $FreeBSD$ + +PORTNAME= cowrie +DISTVERSION= 1.6.0 +CATEGORIES= security python + +MAINTAINER= yuri@FreeBSD.org +COMMENT= Cowrie SSH/Telnet honeypot + +LICENSE= BSD3CLAUSE +LICENSE_FILE= ${WRKSRC}/docs/LICENSE.rst + +BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}click>0:devel/py-click@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}incremental>0:devel/py-incremental@${PY_FLAVOR} +xRUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}salt-common>=2017.7.1:sysutils/py-salt-common@${FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}GitPython>=1:devel/py-gitpython@${FLAVOR} +RUN_DEPENDS= bash:shells/bash \ + ${PYTHON_PKGNAMEPREFIX}appdirs>=1.4.0:devel/py-appdirs@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}configparser>=0:devel/py-configparser@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}cryptography>=0.9.1:security/py-cryptography@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}dateutil>0:devel/py-dateutil@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}incremental>0:devel/py-incremental@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}openssl>0:security/py-openssl@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}packaging>0:devel/py-packaging@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}pyparsing>0:devel/py-pyparsing@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}service_identity>0:security/py-service_identity@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}twisted>=17.1.0:devel/py-twisted@${PY_FLAVOR} + +USES= python shebangfix +SHEBANG_FILES= bin/cowrie +USE_GITHUB= yes +USE_PYTHON= distutils noflavors autoplist + +NO_ARCH= yes + +.include diff --git a/security/cowrie/distinfo b/security/cowrie/distinfo new file mode 100644 index 000000000000..b7e0c11dd996 --- /dev/null +++ b/security/cowrie/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1554706169 +SHA256 (cowrie-cowrie-1.6.0_GH0.tar.gz) = 5a3d170506c74d68a2803b4aed129917ff8c8a5f05b23fd0bb303defa636720f +SIZE (cowrie-cowrie-1.6.0_GH0.tar.gz) = 749172 diff --git a/security/cowrie/pkg-descr b/security/cowrie/pkg-descr new file mode 100644 index 000000000000..d707088ae672 --- /dev/null +++ b/security/cowrie/pkg-descr @@ -0,0 +1,4 @@ +Cowrie is a medium interaction SSH and Telnet honeypot designed to log brute +force attacks and the shell interaction performed by the attacker. + +WWW: https://www.cowrie.org/