From owner-svn-ports-head@freebsd.org Fri Nov 24 21:32:06 2017 Return-Path: Delivered-To: svn-ports-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id C390FDF1F8D; Fri, 24 Nov 2017 21:32:06 +0000 (UTC) (envelope-from yuri@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 9AD60655BC; Fri, 24 Nov 2017 21:32:06 +0000 (UTC) (envelope-from yuri@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id vAOLW5sG030811; Fri, 24 Nov 2017 21:32:05 GMT (envelope-from yuri@FreeBSD.org) Received: (from yuri@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id vAOLW5TU030806; Fri, 24 Nov 2017 21:32:05 GMT (envelope-from yuri@FreeBSD.org) Message-Id: <201711242132.vAOLW5TU030806@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: yuri set sender to yuri@FreeBSD.org using -f From: Yuri Victorovich Date: Fri, 24 Nov 2017 21:32:05 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r454849 - in head/security: . py-ssh-audit py-ssh-audit/files X-SVN-Group: ports-head X-SVN-Commit-Author: yuri X-SVN-Commit-Paths: in head/security: . py-ssh-audit py-ssh-audit/files X-SVN-Commit-Revision: 454849 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 24 Nov 2017 21:32:06 -0000 Author: yuri Date: Fri Nov 24 21:32:05 2017 New Revision: 454849 URL: https://svnweb.freebsd.org/changeset/ports/454849 Log: New port: security/py-ssh-audit: SSH server auditing PR: 223810 Submitted by: Piotr Kubaj Approved by: tcberner (mentor) Differential Revision: https://reviews.freebsd.org/D13207 Added: head/security/py-ssh-audit/ head/security/py-ssh-audit/Makefile (contents, props changed) head/security/py-ssh-audit/distinfo (contents, props changed) head/security/py-ssh-audit/files/ head/security/py-ssh-audit/files/patch-ssh-audit.py (contents, props changed) head/security/py-ssh-audit/pkg-descr (contents, props changed) Modified: head/security/Makefile Modified: head/security/Makefile ============================================================================== --- head/security/Makefile Fri Nov 24 20:32:43 2017 (r454848) +++ head/security/Makefile Fri Nov 24 21:32:05 2017 (r454849) @@ -969,6 +969,7 @@ SUBDIR += py-slowaes SUBDIR += py-spake2 SUBDIR += py-ssh + SUBDIR += py-ssh-audit SUBDIR += py-sslstrip SUBDIR += py-stem SUBDIR += py-stix Added: head/security/py-ssh-audit/Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/security/py-ssh-audit/Makefile Fri Nov 24 21:32:05 2017 (r454849) @@ -0,0 +1,27 @@ +# $FreeBSD$ + +PORTNAME= ssh-audit +DISTVERSIONPREFIX= v +DISTVERSION= 1.7.0 +CATEGORIES= security +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= pkubaj@anongoth.pl +COMMENT= SSH server auditing + +LICENSE= MIT + +USES= python shebangfix +USE_GITHUB= yes +GH_ACCOUNT= arthepsy +USE_PYTHON= concurrent +NO_BUILD= yes +NO_ARCH= yes +SHEBANG_FILES= ssh-audit.py + +PLIST_FILES= bin/ssh-audit + +do-install: + ${INSTALL_SCRIPT} ${WRKSRC}/ssh-audit.py ${STAGEDIR}${PREFIX}/bin/ssh-audit + +.include Added: head/security/py-ssh-audit/distinfo ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/security/py-ssh-audit/distinfo Fri Nov 24 21:32:05 2017 (r454849) @@ -0,0 +1,3 @@ +TIMESTAMP = 1511379690 +SHA256 (arthepsy-ssh-audit-v1.7.0_GH0.tar.gz) = cba29cc19ec2932e4f43c720b2c49a7d179219e23482476aeb472f7463713b68 +SIZE (arthepsy-ssh-audit-v1.7.0_GH0.tar.gz) = 30222 Added: head/security/py-ssh-audit/files/patch-ssh-audit.py ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/security/py-ssh-audit/files/patch-ssh-audit.py Fri Nov 24 21:32:05 2017 (r454849) @@ -0,0 +1,20 @@ +--- ssh-audit.py.orig 2017-11-23 08:27:24 UTC ++++ ssh-audit.py +@@ -43,11 +43,12 @@ try: # pragma: nocover + from typing import Callable, Optional, Union, Any + except ImportError: # pragma: nocover + pass +-try: # pragma: nocover +- from colorama import init as colorama_init +- colorama_init() # pragma: nocover +-except ImportError: # pragma: nocover +- pass ++# colorama is only for Windows, posix systems support colors without it ++#try: # pragma: nocover ++# from colorama import init as colorama_init ++# colorama_init() # pragma: nocover ++#except ImportError: # pragma: nocover ++# pass + + + def usage(err=None): Added: head/security/py-ssh-audit/pkg-descr ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/security/py-ssh-audit/pkg-descr Fri Nov 24 21:32:05 2017 (r454849) @@ -0,0 +1,18 @@ +ssh-audit is a tool for ssh server auditing. + +Features: +* SSH1 and SSH2 protocol server support; +* grab banner, recognize device or software and operating system, + detect compression; +* gather key-exchange, host-key, encryption and + message authentication code algorithms; +* output algorithm information + (available since, removed/disabled, unsafe/weak/legacy, etc); +* output algorithm recommendations + (append or remove based on recognized software version); +* output security information (related issues, assigned CVE list, etc); +* analyze SSH version compatibility based on algorithm information; +* historical information from OpenSSH, Dropbear SSH and libssh; +* no dependencies, compatible with Python 2.6+, Python 3.x and PyPy. + +WWW: https://github.com/arthepsy/ssh-audit