summaryrefslogtreecommitdiffstats
path: root/ssh-audit.py
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-05 17:42:34 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-05 17:42:34 +0000
commit271164583de5842c9093ef4e2866196b24dc6109 (patch)
treec6d060dd47ad362d3e6d3f5311b4398d0b894f4f /ssh-audit.py
parentInitial commit. (diff)
downloadssh-audit-271164583de5842c9093ef4e2866196b24dc6109.tar.xz
ssh-audit-271164583de5842c9093ef4e2866196b24dc6109.zip
Adding upstream version 2.5.0.upstream/2.5.0upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-rwxr-xr-xssh-audit.py21
1 files changed, 21 insertions, 0 deletions
diff --git a/ssh-audit.py b/ssh-audit.py
new file mode 100755
index 0000000..f0cf144
--- /dev/null
+++ b/ssh-audit.py
@@ -0,0 +1,21 @@
+#!/usr/bin/env python3
+"""src/ssh_audit/ssh_audit.py wrapper for backwards compatibility"""
+
+import sys
+import traceback
+from pathlib import Path
+
+sys.path.insert(0, str(Path(__file__).resolve().parent / "src"))
+
+from ssh_audit.ssh_audit import main # noqa: E402
+from ssh_audit import exitcodes # noqa: E402
+
+exit_code = exitcodes.GOOD
+
+try:
+ exit_code = main()
+except Exception:
+ exit_code = exitcodes.UNKNOWN_ERROR
+ print(traceback.format_exc())
+
+sys.exit(exit_code)