File: knockpy.py

package info (click to toggle)
knockpy 9.0.0-1
  • links: PTS
  • area: main
  • in suites: forky, sid
  • size: 560 kB
  • sloc: python: 6,435; makefile: 3
file content (55 lines) | stat: -rw-r--r-- 977 bytes parent folder | download
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)