-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyseckit.py
More file actions
39 lines (33 loc) · 1.27 KB
/
Copy pathpyseckit.py
File metadata and controls
39 lines (33 loc) · 1.27 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#!/usr/bin/env python3
import subprocess
import sys
from pathlib import Path
ROOT = Path(__file__).resolve().parent
TOOLS = {
"1": ("Password Strength Analyzer", ROOT / "tools/password_analyzer/app.py"),
"2": ("Hash Toolkit", ROOT / "tools/hash_tool/hash_tool.py"),
"3": ("File Integrity Checker", ROOT / "tools/integrity_checker/integrity_checker.py"),
"4": ("DNS Security Analyzer", ROOT / "tools/dns_analyzer/dns_analyzer.py"),
"5": ("HTTP Security Header Analyzer", ROOT / "tools/header_analyzer/header_analyzer.py"),
"6": ("Linux Security Log Analyzer", ROOT / "tools/log_analyzer/log_analyzer.py"),
}
def main():
while True:
print("\n" + "=" * 52)
print(" PySecKit")
print(" Defensive Python Security Toolkit")
print("=" * 52)
for key, (name, _) in TOOLS.items():
print(f"{key}. {name}")
print("0. Exit")
choice = input("\nSelect a tool: ").strip()
if choice == "0":
return
if choice not in TOOLS:
print("Invalid selection.")
continue
script = TOOLS[choice][1]
print(f"\nLaunching {TOOLS[choice][0]}...\n")
subprocess.run([sys.executable, str(script)])
if __name__ == "__main__":
main()