From nobody Thu May 18 08:20:33 2023 X-Original-To: dev-commits-ports-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4QMNFs5przz3bMlH; Thu, 18 May 2023 08:20:33 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4QMNFs3sNcz3Ks1; Thu, 18 May 2023 08:20:33 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1684398033; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=Qa5cKJVP7DqGjCrsn+cXKKN+LpJ+7wB5tdA78md/g/I=; b=vy3Km//C7qPIDGw+BBH36GzdIPMBvN1tIwzf5wJyRVCRaAopuGVH1KXt90thCYMfQMl/Db 1JMImBTLlUSQwhkPkjMrSlLfTknyq1eCeimxVDDDFHaF6dtBLUmxgAHE2n4k1YgvfN2CyT Ov7u20AYDW8wnu0+IDcNIMiRKmEGi997omZ87B15HU6AwjDduuf6FyjfmbLrD6Ybf9lUcq mTmb6twQUqjPYXQQ0ZqY2y+e5Rclfd6YabUEFXFDiLNYDHpAlEKXoZciW4ESFQGyETtx0L CK9l2t/GMhl000o2HLJGAuQFcTJxWW1rUbWRO7j8pUH3rgi3Hfx6QnPYrDpdOQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1684398033; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=Qa5cKJVP7DqGjCrsn+cXKKN+LpJ+7wB5tdA78md/g/I=; b=qgoHETHQlW6QmERYRsarvNYqIq6ZlcxSYT274pMphjqzdlhpM5PIaBB6h/iz2mxgkv1zIZ 5Cko+c7MYjdw6/vkqupQH0HLgOqa6FBen32QnzD3ia7sAAH7UwTof+3CwfkKf+DkpH6OuL kNlZL2NeIKfRAcjQSy8bqysAh+QIq2/rjMjNkQPqZMnBUPzSox1JS6+mqryNNJ5BL0zOzJ GpvvCutmy2ER4zusj6t37QLoFhmSRbfPWQ+HMU9Cobap2tacFGUBhOld5Hgq+mSL4I5nEw qP8RiIwvdek9mkm0rWRAGP0E52MaBJpYpsM+Vlpaf2rQbhpMZqcxAUsdM/DgAQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1684398033; a=rsa-sha256; cv=none; b=Ku4cgTCKWfNiiG3YE/VjuzneSsMTxo5h01th1Nw4Eg2n5+ZmoKKtcduDYC7XlKL7jb23LZ uj99DYeNHo6fAq9bMGR2GvBRC3iSefsRTjfViR/5zWuYzeWZ49ACu+KiiSd3/GFPRWwjmz 2Ie7s50QDL4hXwDCNzqwrzcZIZQUzG02FpK2HOnZKoF5zi8C1bVB8lYMiVE3fMr4EIiLbS ibMplHpR8oBG/d3IlDNDUAQ4YLWHM/KvSpmC8NnKv++Gxa1RyH4ERwNIrCTFPVIl7bzQNA TbS6ODlQNxr121RyhkZyv4jeznagZAT/novSun3xMCLySTf8NvLD4ig5M5BFoQ== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4QMNFs2z9kzdxH; Thu, 18 May 2023 08:20:33 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 34I8KXfs056486; Thu, 18 May 2023 08:20:33 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 34I8KXAG056485; Thu, 18 May 2023 08:20:33 GMT (envelope-from git) Date: Thu, 18 May 2023 08:20:33 GMT Message-Id: <202305180820.34I8KXAG056485@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Robert Clausecker Subject: git: 6da2b6f73dea - main - security/ismtp: Test for SMTP user enumeration, internal spoofing, and relay List-Id: Commit messages for all branches of the ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-all@freebsd.org X-BeenThere: dev-commits-ports-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: fuz X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 6da2b6f73deac292a7b27e64105dfd26d12f46ea Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by fuz: URL: https://cgit.FreeBSD.org/ports/commit/?id=6da2b6f73deac292a7b27e64105dfd26d12f46ea commit 6da2b6f73deac292a7b27e64105dfd26d12f46ea Author: rihaz jerrin AuthorDate: 2023-05-15 02:54:06 +0000 Commit: Robert Clausecker CommitDate: 2023-05-18 08:19:42 +0000 security/ismtp: Test for SMTP user enumeration, internal spoofing, and relay SMTP user enumeration (RCPT TO and VRFY), internal spoofing, and open relay. A tool that tests for all three and comes with great flexibility. iSMTP does just that, making it much easier to knock that process out of the way. WWW: https://github.com/altjx/ipwn/tree/master/iSMTP PR: 270304 --- MOVED | 1 - security/Makefile | 1 + security/ismtp/Makefile | 29 +++++++++++++++++++++++++++++ security/ismtp/distinfo | 3 +++ security/ismtp/files/patch-iSMTP_iSMTP.py | 18 ++++++++++++++++++ security/ismtp/pkg-descr | 4 ++++ 6 files changed, 55 insertions(+), 1 deletion(-) diff --git a/MOVED b/MOVED index fc285f8cbaa7..b73f81847c53 100644 --- a/MOVED +++ b/MOVED @@ -5049,7 +5049,6 @@ ports-mgmt/portell||2020-09-19|Has expired: Uses deprecated version of python print/biblio-py||2020-09-19|Has expired: Uses deprecated version of python science/brian||2020-09-19|Has expired: Uses deprecated version of python security/arm||2020-09-19|Has expired: Uses deprecated version of python -security/ismtp||2020-09-19|Has expired: Uses deprecated version of python security/py-halberd||2020-09-19|Has expired: Uses deprecated version of python security/switzerland||2020-09-19|Has expired: Uses deprecated version of python security/tsshbatch||2020-09-19|Has expired: Uses deprecated version of python diff --git a/security/Makefile b/security/Makefile index 0e41ec96cb27..3de8d80b0643 100644 --- a/security/Makefile +++ b/security/Makefile @@ -238,6 +238,7 @@ SUBDIR += ipsec-tools SUBDIR += ipv6toolkit SUBDIR += isal-kmod + SUBDIR += ismtp SUBDIR += isnprober SUBDIR += john SUBDIR += kbfsd diff --git a/security/ismtp/Makefile b/security/ismtp/Makefile new file mode 100644 index 000000000000..d636a9fa0f70 --- /dev/null +++ b/security/ismtp/Makefile @@ -0,0 +1,29 @@ +PORTNAME= ismtp +DISTVERSION= g20190921 +CATEGORIES= security + +MAINTAINER= rihaz.jerrin@gmail.com +COMMENT= Test for SMTP user enumeration, internal spoofing, and relay +WWW= https://github.com/altjx/ipwn/tree/master/iSMTP + +LICENSE= MIT +LICENSE_FILE= ${WRKSRC}/iSMTP/LICENSE.md + +USES= python:3.0+ shebangfix + +USE_GITHUB= yes +GH_ACCOUNT= altjx +GH_PROJECT= ipwn +GH_TAGNAME= 18198ad887c2d7e59c05b3f860d92e56f54d9144 + +SHEBANG_FILES= ${WRKSRC}/iSMTP/iSMTP.py + +NO_ARCH= yes +NO_BUILD= yes + +PLIST_FILES= bin/ismtp + +do-install: + ${INSTALL_SCRIPT} ${WRKSRC}/iSMTP/iSMTP.py ${STAGEDIR}${PREFIX}/bin/ismtp + +.include diff --git a/security/ismtp/distinfo b/security/ismtp/distinfo new file mode 100644 index 000000000000..bc22582dc7cf --- /dev/null +++ b/security/ismtp/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1684157212 +SHA256 (altjx-ipwn-g20190921-18198ad887c2d7e59c05b3f860d92e56f54d9144_GH0.tar.gz) = 94ad381c1405e097958d364e6505d07d065e1463dc2094e86cd2fb1bd158231a +SIZE (altjx-ipwn-g20190921-18198ad887c2d7e59c05b3f860d92e56f54d9144_GH0.tar.gz) = 44500 diff --git a/security/ismtp/files/patch-iSMTP_iSMTP.py b/security/ismtp/files/patch-iSMTP_iSMTP.py new file mode 100644 index 000000000000..8ae448a0c2e2 --- /dev/null +++ b/security/ismtp/files/patch-iSMTP_iSMTP.py @@ -0,0 +1,18 @@ +--- iSMTP/iSMTP.py.orig 2023-03-18 07:13:19 UTC ++++ iSMTP/iSMTP.py +@@ -29,13 +29,13 @@ class colors: + green = "\033[1;32m" + + start_time = time.time() +-banner = "\n " + "-" * 69 + "\n " + colors.white + " iSMTP v1.6 - SMTP Server Tester, Alton Johnson (alton.jx@gmail.com)\n " + colors.normal + "-" * 69 + "\n " ++banner = "\n " + "-" * 69 + "\n " + colors.white + " SMTP Server Tester \n" + colors.normal + "-" * 69 + "\n " + split_service = "\n " + colors.white + "-" * 10 + " starting next test " + "-" * 10 + colors.normal + "\n" + split_target = "\n " + colors.white + "=" * 23 + " starting next target " + "=" * 23 + colors.normal + "\n" + + def help(): + print(banner) +- print(" Usage: ./iSMTP.py \n") ++ print(" Usage: ismtp \n") + print(colors.red + " Required:\n" + colors.normal) + print("\t-f \tImports a list of SMTP servers for testing.\n\t\t\t\t(Cannot use with '-h'.)") + print("\t-h \t\tThe target IP and port (IP:port).\n\t\t\t\t(Cannot use with '-f'.)") diff --git a/security/ismtp/pkg-descr b/security/ismtp/pkg-descr new file mode 100644 index 000000000000..a5fb86f93434 --- /dev/null +++ b/security/ismtp/pkg-descr @@ -0,0 +1,4 @@ +SMTP user enumeration (RCPT TO and VRFY), internal spoofing, and open +relay. A tool that tests for all three and with great flexibility. +iSMTP does just that, making it much easier to knock that process out +of the way.