This port connects to the given SSH server and inspects its key exchange algorithms, MAC, ciphers and key types. It also gives helpful info how to improve configuration of these. Builds and runs fine.
Created attachment 188203 [details] patch SVN patch
Created attachment 188206 [details] patch The updated patch. Added: * Dependency py-colorama * USE_PYTHON=concurrent * prefix py- to the directory * WWW: in pkg-descr
(In reply to Yuri Victorovich from comment #2) Why did you add py-colorama dependency? The script runs fine without it.
(In reply to Piotr Kubaj from comment #3) Because it tries to find it: > try: # pragma: nocover > from colorama import init as colorama_init > colorama_init() # pragma: nocover > except ImportError: # pragma: nocover > pass It is an optional dependency, but we should support such dependencies if it is easy.
(In reply to Yuri Victorovich from comment #4) I've seen that and tested this script with and without colorama. Honestly, I don't see any difference. Moreover, the changelog mentions that it appeared in 1.7.0 to please Windows users: add colors support for Microsoft Windows via optional colorama dependency
(In reply to Piotr Kubaj from comment #5) If it's not needed it should be patched away, because otherwise behavior might be different when colorama is installed. I will patch it out.
Created attachment 188208 [details] patch Thanks for pointing it out!
Committed. Thank you for your submission!
A commit references this bug: Author: yuri Date: Fri Nov 24 21:32:05 UTC 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 <pkubaj@anongoth.pl> Approved by: tcberner (mentor) Differential Revision: https://reviews.freebsd.org/D13207 Changes: head/security/Makefile head/security/py-ssh-audit/ head/security/py-ssh-audit/Makefile head/security/py-ssh-audit/distinfo head/security/py-ssh-audit/files/ head/security/py-ssh-audit/files/patch-ssh-audit.py head/security/py-ssh-audit/pkg-descr