diff options
author | Daniel Baumann <daniel.baumann@open-infrastructure.net> | 2023-02-02 14:51:55 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@open-infrastructure.net> | 2023-02-02 15:04:03 +0000 |
commit | 441e52a062acdffdc20e77d26db153a39a858948 (patch) | |
tree | be263dbb9600a9b5ae374a8272dc3e9be7abb9b8 /web-tools/bin/tools.py | |
parent | Adding web-tools (WIP). (diff) | |
download | network-tools-main.tar.xz network-tools-main.zip |
Signed-off-by: Daniel Baumann <daniel.baumann@open-infrastructure.net>
Diffstat (limited to 'web-tools/bin/tools.py')
-rwxr-xr-x | web-tools/bin/tools.py | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/web-tools/bin/tools.py b/web-tools/bin/tools.py index bf1a067..3bb6a9e 100755 --- a/web-tools/bin/tools.py +++ b/web-tools/bin/tools.py @@ -18,7 +18,7 @@ # along with this program. If not, see <http://www.gnu.org/licenses/>. # Dependencies: -# sudo apt install iputils-ping traceroute whois nmap testssl.sh geoip-bin geoip-database knot-dnsutils +# sudo apt install iputils-ping traceroute whois nmap ssh-audit testssl.sh geoip-bin geoip-database knot-dnsutils from cgi import FieldStorage from datetime import datetime @@ -214,6 +214,14 @@ def main(): else: options = ' ' #-O -T5 + elif Command == 'ssh-audit': + if Protocol == 'ipv6-only': + options = ' -6' + elif Protocol == 'ipv4-only': + options = ' -4' + else: + options = '' + options = options + ' --no-colors ' elif Command == 'testssl': options = ' --color 0 ' elif Command == 'whois': |