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 | |
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')
-rw-r--r-- | web-tools/bin/index.html | 1 | ||||
-rwxr-xr-x | web-tools/bin/tools.py | 10 |
2 files changed, 10 insertions, 1 deletions
diff --git a/web-tools/bin/index.html b/web-tools/bin/index.html index c54f22f..3c2ac1d 100644 --- a/web-tools/bin/index.html +++ b/web-tools/bin/index.html @@ -141,6 +141,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. <b>Security</b><br /> <button type="button" class="btn btn-warning" data-command="/bin/tools.py?command=nmap">nmap</button> + <button type="button" class="btn btn-warning" data-command="/bin/tools.py?command=ssh-audit">ssh-audit</button> <button type="button" class="btn btn-warning" data-command="/bin/tools.py?command=testssl">testssl</button> <div style="height: 1em"></div> 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': |