forked from guelfoweb/knockpy
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathknockpy.py
More file actions
55 lines (50 loc) · 977 Bytes
/
knockpy.py
File metadata and controls
55 lines (50 loc) · 977 Bytes
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
#!/usr/bin/python3
# -*- coding: utf-8 -*-
"""Top-level executable and import-compatible shim.
Purpose:
- `python knockpy.py ...` command execution
- backward-compatible imports for users that import from repository root
"""
import os
import sys
from knockpy.knockpy import (
AsyncScanner,
Bruteforce,
KNOCKPY,
Recon,
__version__,
export_report,
fmt_td,
get_report,
list_reports,
main,
output,
print_scan_status,
save_scan,
show_reports_catalog,
)
__all__ = [
"__version__",
"AsyncScanner",
"Bruteforce",
"KNOCKPY",
"Recon",
"fmt_td",
"main",
"output",
"print_scan_status",
"show_reports_catalog",
"save_scan",
"list_reports",
"get_report",
"export_report",
]
if __name__ == "__main__":
try:
main()
except KeyboardInterrupt:
print("\nInterrupted")
try:
sys.exit(0)
except SystemExit:
os._exit(0)